You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ENOENT error when referencing file paths in OpenCode AI CLI (windows) #2799
When mentioning a file path in the OpenCode CLI, the message fails to send and throws an ENOENT error. It seems like the CLI is trying to scan a directory that doesn’t exist (but it exists).
Also, when searching for files using @filename (e.g., @hero), the CLI does not identify the file.
Haha I will try to spin up a VM and debug it if i find time, the tui is also currnetly being rebuilt from ground up by Dax and that may address some compatibility issues!
@itsrainingmani yes I will, I will test on my machine to make sure it works on non windows still and depending on scope of changes I may need to have someone from team review but I will lyk
Activity
github-actions commentedon Sep 26, 2025
This issue might be a duplicate of existing issues. Please check:
/before it, making for the LLM impossible to find the file #1583: Windows file reference problem where OpenCode incorrectly prepends a Linux root/to Windows file paths, making it impossible for the LLM to find filesFeel free to ignore if none of these address your specific case.
rekram1-node commentedon Sep 26, 2025
I think this may be a duplicate of #1374.
@itsrainingmani is our windows guy so he can help out more here
Aaryan6 commentedon Sep 26, 2025
Thanks, it's the same issue!
But it's been a month, when can I expect this to be solved? I really wanna try opencode!!! 🥺
rekram1-node commentedon Sep 26, 2025
Haha I will try to spin up a VM and debug it if i find time, the tui is also currnetly being rebuilt from ground up by Dax and that may address some compatibility issues!
itsrainingmani commentedon Sep 26, 2025
Hi, this should be fixed by - #2665. @rekram1-node would you mind taking a look at the PR?
rekram1-node commentedon Sep 26, 2025
@itsrainingmani yes I will, I will test on my machine to make sure it works on non windows still and depending on scope of changes I may need to have someone from team review but I will lyk
itsrainingmani commentedon Sep 26, 2025
I've tested on MacOS so hopefully it should check out for you too. I'll re-ping Dax as well
rekram1-node commentedon Sep 26, 2025
@itsrainingmani left a comment on PR
diptodesign commentedon Jul 10, 2026
Error: ENOENT: no such file or directory, mkdir 'C:\Users\user1.config\opencode'