Skip to content

Generate commit message with copilot functionality broke for wsl repos #23092

Open

Description

@nhkhai

The problem

My repo is in

\wsl.localhost\Ubuntu\home\myusername\repos\reponame

in the last version, when I click the generate commit message button, it successfully generates the commit message for my changes.

After the current update, it shows the error:

Request session.create failed with message: session construction failed: UNC paths are not supported by this session filesystem provider

This seems to be related to the copilot backend update related changes.

Release version

Version 3.6.10

Operating system

Windows 11

Steps to reproduce the behavior

No response

Log files

No response

Screenshots

No response

Additional context

I do not wish to map it to a drive letter, so network-drive mapping (net use W: \wsl.localhost\Ubuntu) shouldn't be a solution.

Activity

  1. desktop-triage commented on Oct 28, 2026

    @desktop-triage

    Classification: Bug
    Priority: P2

    This is a regression: the reporter states commit-message generation worked in the previous release for a WSL path ((wsl.localhost/redacted)\Ubuntu\...) and now fails with session construction failed: UNC paths are not supported by this session filesystem provider, pointing specifically to a recent Copilot backend change. I'm suggesting bug and priority-2 since it blocks a documented feature (Copilot commit message generation) for all users with repositories on WSL/UNC paths on Windows, with no workaround other than drive-letter mapping, which the reporter explicitly rejects as unacceptable.

    Initial hypothesis: The workingDirectory and sessionFs.initialCwd passed to the Copilot SDK client are derived directly from the repository's filesystem path without special-casing UNC paths. In createClient, workingDirectory: repositoryPath and sessionFs: getCopilotInMemorySessionFsConfig(repositoryPath, __WIN32__ ? 'windows' : 'posix') pass the raw repository path straight through. For a WSL repo this path is a UNC path ((wsl.localhost/redacted)\...). In copilot-in-memory-session-fs-provider.ts, normalizeCopilotInMemorySessionFsInitialCwd calls win32.normalize(path) on Windows, which leaves UNC paths syntactically intact but does not rewrite them into a form the session filesystem provider in the Copilot SDK/runtime accepts — the SDK's session.create call appears to reject UNC-style paths outright. This is consistent with the reporter's note that the failure correlates with "the copilot backend update," since the SDK/runtime version bump could have introduced or tightened this UNC rejection. I can't confirm from the Desktop repo alone whether the limitation lives in @github/copilot-sdk (currently pinned to 1.0.27-preview.1) or the native runtime binary, since that dependency's source isn't in this repository — diagnostic next steps would be checking the SDK/runtime changelog for UNC path handling and reproducing with a UNC-path repo versus a WSL repo mapped to a drive letter.

    Duplicate Check: No exact duplicate found. Related but distinct: #22044 (WSL repos are slow due to 9P filesystem bridge — a performance issue, not this UNC/session-construction failure) and several older Copilot commit-message issues (#23080 LoadLibrary failure, #22958 invalid JSON, #23037 "Unknown parameter: 'snippy'") which describe different failure modes unrelated to UNC paths.

    Suggested Next Steps: Ready for engineering review — reproduce with a repository on a UNC/WSL path to confirm the session.create UNC rejection, and determine whether the fix belongs in Desktop's path handling before invoking the SDK or needs to be addressed upstream in @github/copilot-sdk.

    Generated by Issue Triage (skills-driven) for #23092 · auto · 104.5 AIC · ⊞ 4.7K · ◷

  2. added
    bug
    priority-2
    and removed on Oct 29, 2026
  3. sergiou87 commented on Oct 29, 2026

    @sergiou87
    Member

    After exploring this with Copilot, this is what I got: (leaving it here for future reference)

    Assessment

    This is a Desktop compatibility regression triggered by the Copilot SDK upgrade—not a recent change to Desktop’s path handling. The runtime’s UNC rejection is intentional behavior.

    Root cause

    Upstream github/copilot-agent-runtime#21056, merged September 17, changed custom session filesystem providers to also own permission-path resolution. It added an explicit rejection of Windows UNC paths:

    UNC paths are not supported by this session filesystem provider

    That rejection remains in the runtime bundled with Desktop 3.6.10. During session construction, resolve_primary applies this check to the repository directory and the provider’s initialCwd. A WSL path such as \\wsl.localhost\Ubuntu\... fails this check.

    Desktop already supplied the repository path as both workingDirectory and sessionFs.initialCwd, using Windows path conventions. That configuration and the in-memory provider implementation are unchanged between Desktop 3.6.7 and the current code.

    Which upgrade introduced it?

    Desktop release Shipped SDK Bundled runtime Relevant behavior
    3.6.7 1.0.13 1.0.83 Predates the provider-specific UNC rejection
    3.6.8 1.0.25 1.0.102 Contains the rejection
    3.6.9 / 3.6.10 1.0.27-preview.1 1.0.104-1 Same rejection remains

    The first affected stable release should therefore be Desktop 3.6.8, through SDK update #23058. The later preview upgrade, #23066, retained the restriction rather than introducing it. Desktop 3.6.10’s Git update is unrelated.

    The rejection already exists in the runtime bundled with SDK 1.0.18, so downgrading only to that version would not resolve the underlying cause.

    Is this a runtime bug or expected behavior?

    The rejection is expected runtime behavior. It is an explicit restriction, with an upstream test enforcing UNC rejection, rather than an accidental failure.

    Desktop uses a custom filesystem provider to keep session state in memory. The changed runtime behavior also makes that provider responsible for repository permission-path handling, exposing a limitation that Desktop’s existing integration previously avoided.

    The appropriate classification is therefore:

    Desktop compatibility bug triggered by an SDK/runtime behavior change.

    There is insufficient evidence to call the upstream restriction itself a bug without an upstream commitment to supporting UNC paths with custom providers. Upstream UNC support could solve the problem, but Desktop needs to adapt its integration or coordinate a supported solution.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority-2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions