Skip to content

fix: WSL UNC paths break bash and git on Windows #22215

Closed as not planned
Closed as not planned

Description

@tobias-weiss-ai-xr

Bug

On Windows, when the project directory is accessed via a UNC path (\\wsl$\...), tools like bash, file search, and git all break because Windows-native path handling doesn't understand UNC paths.

Details

Many Windows developers work inside WSL for toolchain access while opencode runs natively on Windows. When the project lives in WSL, the path comes through as \\wsl$\distro\mnt\c\... which no native Windows tool can handle.

Suggested Fix

Detect UNC paths and translate to WSL equivalents, run git/shell commands through wsl.exe, translate results back.

  • I've verified this exists in the latest version

Activity

  1. github-actions commented on Apr 12, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is distinct from these, please clarify the difference.

  2. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 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

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions