Skip to content

"VS Code Agents" doesn't work well with WSL #312654

@gEt-rIgHt-jR

Description

@gEt-rIgHt-jR

Type: Bug

Steps to reproduce:

  1. Launch VS Code (insider's edition) inside a WSL (it should say "WSL: name" at the bottom left
  2. Click on "Open in Agents" button on the left of "Customize Layout..." button
  3. It launches a new Agents window with correct repo name
  4. Ask it to do something, it throws an error:
    The path '\\wsl.localhost\path\to\repo' does not exist on this computer.

I actually managed to make it work by SSHing to my WSL through the Agents window. But that doesn't seem to be a proper solution. It would be great if this Agents window works seemlessly with repos inside WSL, just like the native Copilot chat.

VS Code version: Code - Insiders 1.118.0-insider (f2b51f3, 2026-04-24T16:58:27Z)
OS version: Windows_NT x64 10.0.26200
Modes:
Remote OS version: Linux x64 6.6.87.2-microsoft-standard-WSL2
Remote OS version: Linux x64 6.6.87.2-microsoft-standard-WSL2

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i9-12900K (24 x 3187)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x10de, DEVICE=0x1fb0 [NVIDIA T1000], DRIVER_VENDOR=NVIDIA, DRIVER_VERSION=31.0.15.5222 ACTIVE
GPU1: VENDOR= 0x8086, DEVICE=0x4680 [Intel(R) UHD Graphics 770], DRIVER_VERSION=30.0.101.1002
GPU2: VENDOR= 0x10de, DEVICE=0x1fb0 [NVIDIA T1000], DRIVER_VERSION=31.0.15.5222
GPU3: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.7309
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.71GB (13.85GB free)
Process Argv --crash-reporter-id 3aa3ad2b-5c60-4519-85f8-e2762b0670d7
Screen Reader no
VM 0%
Item Value
Remote WSL: rocky
OS Linux x64 6.6.87.2-microsoft-standard-WSL2
CPUs 12th Gen Intel(R) Core(TM) i9-12900K (24 x 0)
Memory (System) 23.47GB (19.55GB free)
VM 0%
Item Value
Remote WSL: rocky
OS Linux x64 6.6.87.2-microsoft-standard-WSL2
CPUs 12th Gen Intel(R) Core(TM) i9-12900K (24 x 0)
Memory (System) 23.47GB (19.55GB free)
VM 0%
Extensions (8)
Extension Author (truncated) Version
vscode-markdownlint Dav 0.61.2
gitlens eam 2026.4.250522
cmake-tools ms- 1.24.5
cpp-devtools ms- 0.5.8
cpptools ms- 1.32.1
cpptools-extension-pack ms- 1.5.1
vscode-status-bar-format-toggle tom 3.2.0
remote-wsl ms- 0.104.3

(3 theme extensions excluded)

A/B Experiments
vsliv368:30146709
pythonvspyt551:31249597
nativeloc1:31118317
dwcopilot:31158714
dwoutputs:31242946
copilot_t_ci:31333650
g012b348:31231168
pythonrdcb7:31268811
pythonpcpt1:31399616
6518g693:31302842
6abeh943:31336334
envsactivate1:31349248
editstats-enabled:31346256
cloudbuttont:31366566
3efgi100_wstrepl:31403338
cp_cls_t_966_ss:31454198
inlinechat_v2_hd992725:31445440
4je02754:31455664
c3h7c220:31478652
ge8j1254_inline_auto_hint_haiku:31490507
38bie571_auto:31478677
cp_cls_c_1081:31454833
conptydll_true:31485575
ia-use-proxy-models-svc:31446143
e9c30283:31453065
test_treatment2:31471001
c9b86496:31447327
idci7584:31454084
nes_chat_context_enabled:31451401
e3e4d672:31454087
ei9d7968:31462942
534a6447:31478742
hg17d649:31455236
nes-extended-on:31455475
de16b994:31458079
jc933416:31462667
89g7j272:31480197
hhf17803:31462392
7e187181:31482583
cpptoolson-v2:31475363
i2gc6536:31472020
52612955:31500889
1g3cj959:31494704
h08i8180_copy:31475366
23c7c724:31491644
ddid_c:31478205
getcmakediagnosticson:31489824
g_20_d1382936:31492258
bjc72774_agent_sandbox:31488290
7df3h592:31491241
pro_large_t:31499377
cp_cls_c_1082:31491634
719di409_sum_t:31499469
logging_enabled_new:31490725
nes-ew-div-ctrl:31494904
cg448276_tst_on:31501039

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