On windows, referencing a file puts linux root / before it, making for the LLM impossible to find the file #1092

Closed
opened 2026-02-16 17:29:26 -05:00 by yindo · 2 comments
Owner

Originally created by @raffaem on GitHub (Aug 4, 2025).

Originally assigned to: @thdxr on GitHub.

I'm using WezTerm.

When I reference a file in my project, for instance

Image Image

Opencode puts the linux root folder / before the file path, making impossible for the LLM to find the file

Image
Originally created by @raffaem on GitHub (Aug 4, 2025). Originally assigned to: @thdxr on GitHub. I'm using WezTerm. When I reference a file in my project, for instance <img width="822" height="610" alt="Image" src="https://github.com/user-attachments/assets/741bb95e-e015-4e7c-9f5e-eb1795d5c017" /> <img width="812" height="612" alt="Image" src="https://github.com/user-attachments/assets/a05151f5-95e5-4858-bab1-73e3d2fee5ce" /> Opencode puts the linux root folder `/` before the file path, making impossible for the LLM to find the file <img width="822" height="610" alt="Image" src="https://github.com/user-attachments/assets/f7e8c8d6-3d93-461a-a553-164bfb5d3014" />
yindo closed this issue 2026-02-16 17:29:26 -05:00
Author
Owner

@giansalex commented on GitHub (Oct 8, 2025):

With latest version, this issue was fixed

@giansalex commented on GitHub (Oct 8, 2025): With latest version, this issue was fixed
Author
Owner

@rekram1-node commented on GitHub (Oct 8, 2025):

thx

@rekram1-node commented on GitHub (Oct 8, 2025): thx
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1092