microsoft / microsoft/vscode

Session irreversibly lost after changes to workspace folder and saving workspace

Open
#328,444 0 comments 0 reactions 1 assignee Claimed by @roblourens View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

### Description

Started a chat session, after a ton of work with it realized that session is started on the wrong folder and this affects agent's reasoning.
Added correct folder to workspace
Removed incorrect folder to workspace
Session is still there
Session is still there for days, through reboots and several VS Code updates
Wanted to close vs code window with this session temporarily
Saved workspace to a file, session is still there.
Closed VS Code
Opened same workspace file again: session disappeared from the list
Agent in a new chat session in the workspace says it cannot find old session information anywhere.
This is a massive waste.

### Issue Details

Item|Value
---|---
Issue Category|Bug
Target|Agents Window
VS Code Version|Code 1.131.0 (e4c7e7b1d6d060162f4aa7f8225271b67ce1df75, 2026-07-28T10:51:25Z)
OS Version|Windows_NT x64 10.0.26200

System Info

Item|Value
---|---
VS Code Version|Code 1.131.0 (e4c7e7b1d6d060162f4aa7f8225271b67ce1df75, 2026-07-28T10:51:25Z)
OS Version|Windows_NT x64 10.0.26200
CPUs|AMD EPYC 7763 64-Core Processor (16 x 2445)
GPU Status|2d_canvas: unavailable_software
GPU0: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VENDOR=Microsoft, DRIVER_VERSION=10.0.26100.8875 *ACTIVE*
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8875
GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8875
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: disabled_software
video_encode: disabled_software
webgl: unavailable_software
webgpu: unavailable_software
webnn: unavailable_software
Load (avg)|
Memory (System)|63.95GB (32.52GB free)
Process Argv|--crash-reporter-id aee14a48-e41d-45ef-8ac6-03c2dde1fc4f
Screen Reader|no
VM|0%
User Agent|Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.131.0 Chrome/148.0.7778.280 Electron/42.7.0 Safari/537.36
Installation pure|true

Extensions (7)

Name|Identifier|Author|Version
---|---|---|---
Claude Code for VS Code|anthropic.claude-code|Anthropic|2.1.218
Agency|microsoft.agency|Microsoft|1.0.260515001
Bicep|ms-azuretools.vscode-bicep|ms-azuretools|0.45.15
.NET Install Tool|ms-dotnettools.vscode-dotnet-runtime|ms-dotnettools|3.1.0
Remote Explorer|ms-vscode.remote-explorer|ms-vscode|0.5.0
Remote - Tunnels|ms-vscode.remote-server|ms-vscode|1.5.3
YAML|redhat.vscode-yaml|redhat|1.24.0

Theme extensions: 9

A/B Experiments

```
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
471b6256:31240254
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
envsactivate1:31551504
gh487529:31544284
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
cmp-cht-diffpatch-3in1-lysithea-0024-internal:31557802
metis_rerank_treatment1:31422731
cp_cls_t_966_ss:31526232
4je02754:31466945
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31490510
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
test_treatment2:31471001
46204921:31447328
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
ah:31461780
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
ddid_t:31478206
hmra_i5g22:-9
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31543129
56dj4588:31512888
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
f9bf7985:31543584
jh5f2457_c:31540921
hgf2d445:31529595
41836166:31537719
jbcp_cls_pctr_t:31531130
61138546:31518536
3f904173:31522231
cp_intellij_t_nes:31548657
jf4hg949:31526829
nes-curr-leftover-1500:31538366
ahp-both-windows:31556933
h561g132:31533256
sessions_3:31532893
hjji5903:31534458
f412h606:31551416
9gg7f176:31542112
90g4a790:31556955
5fe6f778:31554331
allow-none:31555437
fd5dc207:31551400
c7c27ce7:31554789
a81hg326:31551415
8hc4g144:31558143
0dg73464:31554319
gpt56sol_default:31557530
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
session-archive:31558132
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.