You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Open in Agents View does not work from WSL #316342
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
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).
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).
Activity
rhagan9202 commentedon May 14, 2026
I am experiencing the same base issue.
zanejohnson-azure commentedon May 14, 2026
Same issue from me too.
howelwu commentedon May 14, 2026
I’m also running into this issue
bull-alexander-nehmer commentedon May 18, 2026
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).
ConcernedHobbit commentedon May 18, 2026
This is blocking VSCode Agents adoption and driving me to use Claude instead. Even adding
wsl.localhostinsecurity.allowedUNCHostsdoes not resolve the issue. Blanket allowing all host names is not an option due to security considerations (security.restrictUNCAccessshould not be required to befalse).This can be worked around by opening VSCode Agents directly from a WSL2 terminal (
code --agents).gitgud5000 commentedon May 18, 2026
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...PabloReyes commentedon May 21, 2026
Also experiencing this.
bamurtaugh commentedon May 28, 2026
Thank you for taking the time to share your feedback and scenarios. I believe we can continue discussion in this issue: #317380