Skip to content

[bug] shadcn UI components: Dyad is asking to provide the code of the file that it's supposed to be able to read #768

@d1coach

Description

@d1coach

Will - this is happening a lot and it's wasting my credits because I have to retry the actions, re-start the app, etc

Image

Bug Description

Dyad errors out and is unable to edit the files with the following message:

My apologies! It seems I didn't receive the content of src/components/ui/sidebar.tsx in the previous turn. Without seeing how the Sidebar component itself is implemented, it's difficult to pinpoint why it's not hiding correctly on mobile.

The issues you're describing (two logos, sidebar overlapping, user info visible) strongly suggest that the Sidebar component isn't properly managing its visibility or positioning on mobile, or that the main content area isn't adjusting its layout when the sidebar is supposed to be hidden.

To properly diagnose and fix this, I need to see the code for src/components/ui/sidebar.tsx. Could you please provide its contents?

Steps to Reproduce

Hard to say - many different edits. I will happen at some point.

Expected Behavior

Read the files in your code base and edit them as required.

Actual Behavior

System Information

  • Dyad Version: 0.14.0
  • Platform: darwin
  • Architecture: arm64
  • Node Version: v22.15.0
  • PNPM Version: 10.12.4
  • Node Path: /usr/local/bin/node
  • Telemetry ID: 27f9f98e-2ac6-497d-a713-66bb326401a3
  • Model: auto:auto | customId: undefined

Logs

│   Run "pnpm approve-builds" to pick which dependencies should be allowed     │
│   to run scripts.                                                            │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯



> @ dev /Users/evgenybik/dyad-apps/Headbanger
> vite --port 32100


  VITE v6.3.4  ready in 85 ms


  ➜  Network: http://192.168.5.220:32100/

[2025-08-01 21:36:44.346] [error] (tsc) TSC worker exited with code 1 for app /Users/evgenybik/dyad-apps/Headbanger
[2025-08-01 21:36:45.014] [error] (tsc) TSC worker exited with code 1 for app /Users/evgenybik/dyad-apps/Headbanger
[2025-08-01 21:36:46.696] [error] (tsc) TSC worker exited with code 1 for app /Users/evgenybik/dyad-apps/Headbanger

Metadata

Metadata

Assignees

No one assigned

    Labels

    upcomingthings that I want to tackle in the next 1-2 weeks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions