Skip to content

Agents window: cannot open WSL remote projects (path resolution fails) #316251

Closed as duplicate

Description

@Zoneee

Summary

The Agents window (Preview, introduced in 1.120) cannot work with WSL-based projects.
When attempting to open a project that lives inside a WSL filesystem, the window
fails to resolve paths, reporting that the path cannot be found.

Steps to Reproduce

  1. Open VS Code on Windows with the Remote - WSL extension installed.
  2. Connect to a WSL distro and open a project (e.g. /home/user/myproject).
  3. Click "Open in Agents" from the title bar (or open the Agents window manually).
  4. Try to add the WSL project as a session target.

Expected Behavior

The Agents window should be able to connect to WSL the same way a regular
Remote - WSL window does, and run agents against projects on the Linux filesystem.

Actual Behavior

The window runs in the Windows host context and cannot resolve Linux-side paths
(e.g. /home/user/myproject). An error is shown indicating the path cannot be found.

Environment

  • VS Code version: 1.120.0
  • OS: Windows (with WSL2, Ubuntu 24.04)
  • Remote - WSL extension: latest

Additional Context

The regular VS Code Remote - WSL window works correctly for Copilot Chat agent
mode. The limitation appears to be that the Agents window does not inherit or
establish a remote connection (WSL / SSH / Dev Containers) the way a standard
editor window does.

Being able to run agents on WSL projects is important for developers who do all
their work inside WSL. The workaround of accessing WSL files via \\wsl$\...
UNC paths is unreliable and has significant I/O performance penalties.

Suggested Solution

Allow the Agents window to establish WSL (and more broadly, Remote extension)
connections per-session, similar to how the regular editor window does. The
existing "run agents on remote machines" direction mentioned in the 1.120 release
notes suggests this is already on the roadmap.

Labels to add: feature-request, agents-window, remote-wsl

Activity

  1. zanejohnson-azure commented on May 14, 2026

    @zanejohnson-azure

    Same issue #316342

  2. added
    *duplicate
    on May 15, 2026
  3. vs-code-engineering commented on May 15, 2026

    @vs-code-engineering
    Contributor

    Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

    Happy Coding!

  4. locked and limited conversation to collaborators on Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicate

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions