Skip to content

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

Closed

Description

@filipsobol

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

Activity

  1. github-actions commented on Mar 25, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions