opencode icon indicating copy to clipboard operation
opencode copied to clipboard

New WSL session uses wrong path, causing early read/shell failures

Open filipsobol opened this issue 2 weeks ago • 0 comments

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

  1. Install OpenCode on a Windows host.
  2. Open a project in WSL.
  3. 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

filipsobol avatar Dec 30 '25 18:12 filipsobol