Windows: Opencode cannot find the file referenced #1954

Closed
opened 2026-02-16 17:33:25 -05:00 by yindo · 1 comment
Owner

Originally created by @giansalex on GitHub (Oct 4, 2025).

I can choose valid file when write the instruction, but after send it.

Image

Looks like it uses paths similar to git bash:
/C:/Users/USER/Documents/..., but valid path should be:
/C/Users/USER/Documents/... (removed :)

Originally created by @giansalex on GitHub (Oct 4, 2025). I can choose valid file when write the instruction, but after send it. <img width="552" height="112" alt="Image" src="https://github.com/user-attachments/assets/88faca42-a5bb-4606-b0fe-5a1c5833c15f" /> Looks like it uses paths similar to git bash: `/C:/Users/USER/Documents/...`, but valid path should be: `/C/Users/USER/Documents/...` (removed `:`)
yindo closed this issue 2026-02-16 17:33:25 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 4, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2799: ENOENT error when referencing file paths in OpenCode AI CLI (windows) - similar Windows file path resolution issues
  • #1374: Fuzzy file search does not work correctly on Windows - also mentions backslash path separator issues on Windows
  • #1202: Attachements do not work on WSL - mentions path format issues with Windows paths like C:\Users\xxx\Pictures\Screenshots\image.png

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 4, 2025): This issue might be a duplicate of existing issues. Please check: - #2799: ENOENT error when referencing file paths in OpenCode AI CLI (windows) - similar Windows file path resolution issues - #1374: Fuzzy file search does not work correctly on Windows - also mentions backslash path separator issues on Windows - #1202: Attachements do not work on WSL - mentions path format issues with Windows paths like C:\Users\xxx\Pictures\Screenshots\image.png Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1954