Skip to content

Open in Agents View does not work from WSL #316342

Closed as duplicate
Closed as duplicate

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.120.0 (user setup)
  • OS Version: Windows 11 25H2/WSL2 Ubuntu 24.04

Steps to Reproduce:

  1. Open a repo in WSL2.
  2. Use the chat panel to start an agent conversation. Wait for the agent to finish responding.
  3. Click the "Open in Agents" button next to the search box in the title bar
  4. The Agents window opens, but the files and chat context are not visible. See screen shot.
Image

Activity

  1. rhagan9202 commented on May 14, 2026

    @rhagan9202

    I am experiencing the same base issue.

    • VS Code started within WSL Ubuntu-24.0.4.1 and connects
    • Project folder opens as normal, long history of agent sessions is shown as expected
    • Any approach to Open in Agents - button, command list, terminal > code --agents , all produce an Agents instance opened in a Windows context that is not connected to WSL
  2. zanejohnson-azure commented on May 14, 2026

    @zanejohnson-azure

    Same issue from me too.

  3. howelwu commented on May 14, 2026

    @howelwu

    I’m also running into this issue

  4. bull-alexander-nehmer commented on May 18, 2026

    @bull-alexander-nehmer

    Would a fix for the WSL issue technically include a fix to work with devcontainers? The idea of unifying all my workstreams across WSL and devcontainer sessions sound promising, but it feels like the devcontainer idea of project/customer specific devsetups with devcontainers is not in focus. IMHO having highly tailored environments for agents to work is a MUST HAVE to reduce failure rates due to confusing setups (multiple node runtimes/library versions etc. on the host machine istead in different dev envs).

  5. ConcernedHobbit commented on May 18, 2026

    @ConcernedHobbit

    This is blocking VSCode Agents adoption and driving me to use Claude instead. Even adding wsl.localhost in security.allowedUNCHosts does not resolve the issue. Blanket allowing all host names is not an option due to security considerations (security.restrictUNCAccess should not be required to be false).

    This can be worked around by opening VSCode Agents directly from a WSL2 terminal (code --agents).

  6. gitgud5000 commented on May 18, 2026

    @gitgud5000

    This can be worked around by opening VSCode Agents directly from a WSL2 terminal (code --agents).

    This doesnt work, it opens in the Win host, not connected to the VSC server running in WSL...


    SSH is not working for me either (to an arbitrary remote machine) ... (possibly related #316418 )
    No logs in Remote Connections...

    Image
  7. PabloReyes commented on May 21, 2026

    @PabloReyes

    Also experiencing this.

  8. bamurtaugh commented on May 28, 2026

    @bamurtaugh
    Member

    Thank you for taking the time to share your feedback and scenarios. I believe we can continue discussion in this issue: #317380

  9. locked and limited conversation to collaborators on Jul 12, 2026
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