opencode
opencode copied to clipboard
New WSL session uses wrong path, causing early read/shell failures
Description
When starting a new session in a WSL project, the first few read and shell operations fail because they’re executed against an incorrect path.
Expected
Operations should use the UNC WSL path:
-
\\wsl.localhost\<DISTRO>\home\<USER>\<PATH>
Actual
The first few operations attempt to run in:
-
\home\<USER>\<PATH>
Impact
The initial read/shell operations fail until the model figures out correct pwd.
OpenCode version
v1.0.215
Steps to reproduce
- Install OpenCode on a Windows host.
- Open a project in WSL.
- Ask the model to do something in a specific file.
Gemini 3 Flash fails (almost?) every time. Claude Sonnet 4.5 and GLM-4.7 fail too (I tested it only once).
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
No response