microsoft / microsoft/vscode

Agents window incorrectly parses SSH config

Open
#331,769 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Type: Bug

I have an SSH config file (.ssh/config) containing hosts whose names have spaces, e.g.:

```
Host "Dev Instance (EU)"
...
```

This works fine when connecting with the "Remote - SSH" extensions: I see "Dev Instance (EU)" as a single line in the "Connect to Host" picker.

But with "Open in Agents" -> "Workspace" -> "Remote" -> "SSH" I see this value over multple lines, split on spaces rather than obeying the quoting.

Example: Remote - SSH at the top, Agents at the bottom

Image

VS Code version: Code 1.134.0 (110a328ea54b42367b803ec53ee0bf52ef26b419, 2026-08-18T18:24:44Z)
OS version: Windows_NT x64 10.0.26200
Modes:
Remote OS version: Linux x64 6.17.0-1019-aws

System Info

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) Ultra 7 255H (16 x 3686)|
|GPU Status|2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0x7d51 [Intel(R) Arc(TM) 140T GPU (16GB)], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.8132 *ACTIVE*
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8972
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
webgpu: enabled
webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|31.43GB (13.30GB free)|
|Process Argv|--crash-reporter-id 4819e834-e085-4e41-ae29-3ccb96fac386|
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|SSH: Dev Instance (EU)|
|OS|Linux x64 6.17.0-1019-aws|
|CPUs|Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz (8 x 0)|
|Memory (System)|30.65GB (25.88GB free)|
|VM|0%|
Extensions (35)

Name|Identifier|Author|Version
---|---|---|---
Jupyter Keymap|ms-toolsai.jupyter-keymap|ms-toolsai|1.1.2
Dev Containers|ms-vscode-remote.remote-containers|ms-vscode-remote|0.466.0
Remote - SSH|ms-vscode-remote.remote-ssh|ms-vscode-remote|0.124.0
Remote - SSH: Editing Configuration Files|ms-vscode-remote.remote-ssh-edit|ms-vscode-remote|0.87.0
WSL|ms-vscode-remote.remote-wsl|ms-vscode-remote|0.104.3
Remote Development|ms-vscode-remote.vscode-remote-extensionpack|ms-vscode-remote|0.26.0
Remote Explorer|ms-vscode.remote-explorer|ms-vscode|0.5.0
Remote - Tunnels|ms-vscode.remote-server|ms-vscode|1.5.3
vscode-pdf|tomoki1207.pdf|tomoki1207|1.2.2
Claude Code for VS Code|anthropic.claude-code|Anthropic|2.1.237
Ruff|charliermarsh.ruff|charliermarsh|2026.72.0
Protobuf VSC|drblury.protobuf-vsc|DrBlury|1.6.9
GitLens — Git supercharged|eamodio.gitlens|eamodio|19.0.1
GitHub Pull Requests|github.vscode-pull-request-github|GitHub|0.162.0
HashiCorp HCL|hashicorp.hcl|hashicorp|0.6.0
HashiCorp Terraform|hashicorp.terraform|hashicorp|2.40.0
Black Formatter|ms-python.black-formatter|ms-python|2026.6.0
Python Debugger|ms-python.debugpy|ms-python|2026.6.0
Flake8|ms-python.flake8|ms-python|2026.6.0
isort|ms-python.isort|ms-python|2026.6.0
Mypy Type Checker|ms-python.mypy-type-checker|ms-python|2026.6.0
Python|ms-python.python|ms-python|2026.4.0
Pylance|ms-python.vscode-pylance|ms-python|2026.3.1
Python Environments|ms-python.vscode-python-envs|ms-python|1.36.0
Data Wrangler|ms-toolsai.datawrangler|ms-toolsai|1.24.2
Jupyter|ms-toolsai.jupyter|ms-toolsai|2025.9.1
Jupyter Keymap|ms-toolsai.jupyter-keymap|ms-toolsai|1.1.2
Jupyter Notebook Renderers|ms-toolsai.jupyter-renderers|ms-toolsai|1.3.0
Jupyter Cell Tags|ms-toolsai.vscode-jupyter-cell-tags|ms-toolsai|0.1.9
Jupyter Slide Show|ms-toolsai.vscode-jupyter-slideshow|ms-toolsai|0.1.6
Live Share|ms-vsliveshare.vsliveshare|ms-vsliveshare|1.1.122
autoDocstring - Python Docstring Generator|njpwerner.autodocstring|njpwerner|0.6.1
Postman|postman.postman-for-vscode|Postman|1.19.1
Even Better TOML|tamasfe.even-better-toml|tamasfe|0.21.2
YAML Outline|wongyouth.yaml-outline|wongyouth|0.3.3

A/B Experiments

```
vsliv368cf:30146710
vswsl492cf:30256860
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
82j33506:31327384
envsactivate1:31551504
gh487529:31544284
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ddidtcf:31399634
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
c3h7c220:31478652
ge8j1254_inline_auto_hint_haiku:31490510
cp_cls_t_1081:31454832
conptydll_true:31498968
e9c30283:31461165
test_control1:31471004
c9b86496:31447327
control_6dc23131:31555649
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31518289
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
ddid_c:31478207
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_t_632:31543129
748c7209:31512887
32d76977:31512328
ha629193:31508444
jh5f2457_c:31540921
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31548657
gf14b233:31526830
ahp-both-windows:31556933
session_8:31532895
ihg5j128:31534457
f412h606:31551416
7g2b5551:31542111
enable_editor_pane_layout:31567814
allow-none:31555437
fd5dc207:31551400
ac562147:31564510
c7c27ce7:31554789
1h923230:31564177
1532g621_copy:31554320
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
0d8dfbc3:31566037
a1hcc538:31559322
0c1h4866:31566224
vrbsty_fls:31561059
session-mark-done:31558131
5b8j3302:31564601
permission_prompt_treatment:1332566
ccr_pr_nudge_adoption:1319471

```

Contributor guide

Open the contributing guide

Research direction

No source file or test is named in the report. Reproduce the issue through Open in Agents → Workspace → Remote → SSH, then compare its host parsing with the Remote - SSH Connect to Host picker using a quoted host name; done when the quoted name remains a single entry in the Agents picker and the behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.