Skip to content

Visual Studio Code Agents (Preview) should gracefully handle PowerShell shell fallback on Windows #308584

@neonvarun

Description

@neonvarun

Type: Bug

Steps to Reproduce :

Visual Studio Code Agents (Preview) on Windows.
Start an agent task that needs terminal access.
The agent runtime cannot see pwsh, even though PowerShell is installed on the host.
The task fails instead of falling back.

Expected :
Agents should fall back to a supported shell or show a clear setup prompt.

Actual :
The agent runtime cannot see pwsh, so terminal-based work cannot proceed.

Additional Info:
PowerShell is installed on the Windows host, but the Agents preview runtime cannot see it. This blocks terminal-based agent work. A graceful shell fallback would avoid a hard failure.

Extension version: 0.43.2026040705
VS Code version: Code - Insiders 1.115.0-insider (41dd792, 2026-04-07T22:04:57Z)
OS version: Windows_NT x64 10.0.26200
Modes:

Logs
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 6ce7e422-48dc-4d70-a6f4-25fccdccedfd
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session c4b0d715-08b3-4f03-845d-50dda9c5b423
Debug: [CopilotCLI] Found 2 JSONL sessions and 0 legacy sessions
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 6ce7e422-48dc-4d70-a6f4-25fccdccedfd
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session c4b0d715-08b3-4f03-845d-50dda9c5b423
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Trace: [GitServiceImpl][doOpenRepository] Active repository: {"_repo":{"rootUri":{"$mid":1,"external":"file:///c%3A/Projects/AaryaAI/Aarya_AI","path":"/c:/Projects/AaryaAI/Aarya_AI","scheme":"file"},"inputBox":{},"kind":"repository","state":{},"ui":{}},"rootUri":{"$mid":1,"external":"file:///c%3A/Projects/AaryaAI/Aarya_AI","path":"/c:/Projects/AaryaAI/Aarya_AI","scheme":"file"},"kind":"repository","headBranchName":"main","headCommitHash":"7a642bc841835b78234c4dbe2956ff9584352099","upstreamBranchName":"main","upstreamRemote":"origin","isRebasing":true,"remotes":["origin"],"remoteFetchUrls":["https://github.com/neonvarun/AaryaAI"],"worktrees":[{"name":"Aarya_AI","path":"c:\\Projects\\AaryaAI\\Aarya_AI","ref":"refs/heads/main","detached":false,"main":true},{"name":"copilot-near-hornet","path":"C:/Projects/AaryaAI/Aarya_AI.worktrees/copilot-near-hornet","ref":"refs/heads/copilot/near-hornet","detached":false,"main":false}],"changes":{"mergeChanges":[],"indexChanges":[],"workingTree":[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}],"untrackedChanges":[]},"_onDidChangeSignal":{"_observers":{},"debugName":"Observable Signal From Event"},"headBranchNameObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"headCommitHashObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"upstreamBranchNameObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"upstreamRemoteObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"isRebasingObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"_checkIsIgnored":{"_waitingTimeMs":1000,"_queue":[],"_timeout":null},"_isIgnored":{"_map":{},"_map2":{}}}
Debug: [CopilotCLI] Found 2 JSONL sessions and 0 legacy sessions
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 6ce7e422-48dc-4d70-a6f4-25fccdccedfd
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session c4b0d715-08b3-4f03-845d-50dda9c5b423
Debug: [context keys] Window state change. Needs offline check: false, active: false, focused: true.
Trace: [GitServiceImpl][doOpenRepository] Active repository: {"_repo":{"rootUri":{"$mid":1,"external":"file:///c%3A/Projects/AaryaAI/Aarya_AI","path":"/c:/Projects/AaryaAI/Aarya_AI","scheme":"file"},"inputBox":{},"kind":"repository","state":{},"ui":{}},"rootUri":{"$mid":1,"external":"file:///c%3A/Projects/AaryaAI/Aarya_AI","path":"/c:/Projects/AaryaAI/Aarya_AI","scheme":"file"},"kind":"repository","headBranchName":"main","headCommitHash":"7a642bc841835b78234c4dbe2956ff9584352099","upstreamBranchName":"main","upstreamRemote":"origin","isRebasing":true,"remotes":["origin"],"remoteFetchUrls":["https://github.com/neonvarun/AaryaAI"],"worktrees":[{"name":"Aarya_AI","path":"c:\\Projects\\AaryaAI\\Aarya_AI","ref":"refs/heads/main","detached":false,"main":true},{"name":"copilot-near-hornet","path":"C:/Projects/AaryaAI/Aarya_AI.worktrees/copilot-near-hornet","ref":"refs/heads/copilot/near-hornet","detached":false,"main":false}],"changes":{"mergeChanges":[],"indexChanges":[],"workingTree":[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}],"untrackedChanges":[]},"_onDidChangeSignal":{"_observers":{},"debugName":"Observable Signal From Event"},"headBranchNameObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"headCommitHashObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"upstreamBranchNameObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"upstreamRemoteObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"isRebasingObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"_checkIsIgnored":{"_waitingTimeMs":1000,"_queue":[],"_timeout":null},"_isIgnored":{"_map":{},"_map2":{}}}
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Debug: [CopilotCLI] Found 3 JSONL sessions and 0 legacy sessions
Trace: [ChatSessionMetadataStore] Wrote metadata for session 0596fde4-8377-47c9-8604-a399acfaa3f2
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 0596fde4-8377-47c9-8604-a399acfaa3f2
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 6ce7e422-48dc-4d70-a6f4-25fccdccedfd
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session c4b0d715-08b3-4f03-845d-50dda9c5b423
Trace: [ChatSessionMetadataStore] Wrote bulk metadata file with 3 session(s)
Debug: [CopilotCLI] Found 3 JSONL sessions and 0 legacy sessions
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 0596fde4-8377-47c9-8604-a399acfaa3f2
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 6ce7e422-48dc-4d70-a6f4-25fccdccedfd
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session c4b0d715-08b3-4f03-845d-50dda9c5b423
Debug: [CopilotCLI] Found 3 JSONL sessions and 0 legacy sessions
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 0596fde4-8377-47c9-8604-a399acfaa3f2
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 6ce7e422-48dc-4d70-a6f4-25fccdccedfd
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session c4b0d715-08b3-4f03-845d-50dda9c5b423
Debug: [CopilotCLI] Found 3 JSONL sessions and 0 legacy sessions
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 0596fde4-8377-47c9-8604-a399acfaa3f2
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 6ce7e422-48dc-4d70-a6f4-25fccdccedfd
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session c4b0d715-08b3-4f03-845d-50dda9c5b423
Trace: [CopilotCLI] POST /mcp request, sessionId: 0596fde4-8377-47c9-8604-a399acfaa3f2
Debug: [CopilotCLI] Updating session name for 0596fde4-8377-47c9-8604-a399acfaa3f2 to "Explore GPT-5.4-Mini"
Debug: [CopilotCLI] Found 3 JSONL sessions and 0 legacy sessions
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 0596fde4-8377-47c9-8604-a399acfaa3f2
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 6ce7e422-48dc-4d70-a6f4-25fccdccedfd
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session c4b0d715-08b3-4f03-845d-50dda9c5b423
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Debug: [CopilotCLI] Found 3 JSONL sessions and 0 legacy sessions
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 0596fde4-8377-47c9-8604-a399acfaa3f2
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 6ce7e422-48dc-4d70-a6f4-25fccdccedfd
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session c4b0d715-08b3-4f03-845d-50dda9c5b423
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Debug: [CopilotCLI] Found 3 JSONL sessions and 0 legacy sessions
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 0596fde4-8377-47c9-8604-a399acfaa3f2
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session 6ce7e422-48dc-4d70-a6f4-25fccdccedfd
Warning: [ChatSessionWorkspaceFolderService][getWorkspaceChanges] No repository properties found for session c4b0d715-08b3-4f03-845d-50dda9c5b423
Request IDs
38984e65-0915-46ba-b8e0-a3e41f1b3f1c
aeef9cab-2fb3-4019-b1f8-310fc75dceb1
148b16f4-ae2c-42a2-ab27-fe747dd08262
793c3a14-b01b-40e2-ac6d-e83587a38cf0
764a9361-9a12-4d66-96e5-5d1a6c312dd6
ed2f60d8-70e8-4e0f-b5c0-19b75e55d514
e8ae6ffe-e41c-4812-b965-c9f53b6bd60b
20683656-d6a5-4ceb-af03-4cfd81e4cbb2
6899e287-87e7-4c73-875f-f0e11489f5c5
7591efb6-dadd-4cee-bdcf-0fa12df49e55
640769cf-a4f2-439f-b5d0-dd3fab86a0a9
5fa9efc9-1efe-4774-b997-7f02d92cbe41
409b9b40-eba6-4726-92b6-6731e3510913
3988b6a5-1ad4-44df-a83e-ea094becd8ed
50f119b7-63d9-439e-b43b-c899b5c85988
ee2d0ad2-5270-430b-b6d3-15877a8f2446
dc39e81f-6c34-4d52-9416-2209d2a5c3f3
1867b736-9bdc-472c-9647-9b183772c576
d62ae034-c555-4e63-a1df-d419ca4f6423
6b023234-bf2e-480b-834d-9bf5b97e4593
ac228eb3-3958-42d0-b718-af3bf96fe5ea
71ef716b-3eda-474b-98f7-999b75d35e21
a253f114-5ad9-4da4-ad7a-26c30978b351
System Info
Item Value
CPUs AMD Ryzen 9 7900X 12-Core Processor (24 x 4691)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x1002, DEVICE=0x164e [AMD Radeon(TM) Graphics], DRIVER_VENDOR=AMD, DRIVER_VERSION=32.0.21043.5001 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8115
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) 15.11GB (0.90GB free)
Process Argv --open-url --crash-reporter-id 5ec6d840-77c9-483e-ae79-c85d8ca592cb -- vscode-insiders://file/c:/Projects/AaryaAI?windowId=_blank&session=copilotcli%253A%252F6ce7e422-48dc-4d70-a6f4-25fccdccedfd
Screen Reader no
VM 0%
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
use-responses-api:31390341
je187915:31454425
cp_cls_t_966_ss:31454198
inlinechat_v2_hd992725:31445440
4je02754:31455664
c3h7c220:31478652
ge8j1254_inline_auto_hint_haiku:31491242
38bie571_auto:31429954
cp_cls_t_1081:31454832
conptydll_true:31485575
ia-use-proxy-models-svc:31446143
e9c30283:31453065
test_treatment2:31471001
rl_a_098a3278:31491248
idci7584:31454084
nes_chat_context_disabled:31451402
e3e4d672:31454087
ei9d7968:31462942
534a6447_copy:31478741
7ef87755:31455235
nes-extended-on:31455475
de16b994:31458079
jc933416:31462667
89g7j272:31480197
hhf17803:31462392
t-some:31466503
7e187181:31482583
cpptoolson-v2:31475363
i2gc6536:31472020
30450953:31486770
h08i8180_copy:31475366
23c7c724:31488001
client_tst_t:31486874
po_split_t:31488387
ddid_t:31478204
getcmakediagnosticsoff:31489825
bjc72774_agent_sandbox:31488290
7df3h592:31491241
fixed-trtmt-prompt-cache:31487636
pro_large_t:31484703
41e7a136_t:31485218
f5b8g904_t:31489326
nes-cj-aftline:31490296
nes-async-ew-check-off:31490309
logging_enabled_new:31490725

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