Skip to content

Windows Desktop passes WSL UNC paths to a Linux server, causing HTTP 500 errors and persistent startup crashes #52205

Description

@MTVNAMT

Description

I am using OpenCode Desktop on Windows 11, connected to an OpenCode v2 server running inside WSL2.

When I add a WSL project through the desktop app, it opens the native Windows folder picker. Selecting a folder inside WSL returns a Windows UNC path, such as:

\\wsl.localhost\UbuntuD\home\tmbv\src\Admin.Net

The desktop app passes this path directly to the Linux server instead of converting it to:

/home/tmbv/src/Admin.Net

The Linux server then fails to resolve the directory. The project may appear in the desktop UI, but its conversation history and Git information cannot be loaded. Requests return HTTP 500, and the desktop app can enter a fatal error screen.

Environment

  • OS: Windows 11
  • Backend: WSL2, distribution named UbuntuD
  • WSL OpenCode CLI/server:

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions