Skip to content

Agents Window: pinned sessions disappeared after updating to VS Code 1.140.0 #339049

Open

Description

@mkurz01

Type: Bug

  1. On September 30, 2026, I was using the VS Code version immediately preceding 1.140.0. Two unfinished sessions were visible in the Agents Window under the same workspace.
  2. I pinned both sessions, and they appeared in the Pinned section. One session also had a sub-chat.
  3. I updated VS Code to 1.140.0. On October 1, neither session was visible in the Agents Window.

Expected:
Both sessions remain visible in the Pinned section and can be reopened, including the sub-chat.

Actual:
The Pinned section is no longer displayed, and neither session appears under the workspace. Restarting Windows did not restore them. Other sessions in the same workspace are still visible.

Additional information:
The local data for both sessions and their pinned-session entries still exist. I noticed the problem after the update, but cannot confirm that the update caused it.
OS: Windows

Additional observation: When I pin another, currently visible session, the Pinned section reappears. However, the two sessions that were pinned before the update are still missing from it and from the workspace section. Their local session data and pinned-session entries still exist.
So the issue is not simply that the Pinned section is hidden; these two existing sessions are not being listed.

VS Code version: Code 1.140.0 (07f806f, 2026-09-30T10:38:38+02:00)
OS version: Windows_NT x64 10.0.26200
Modes:

System Info
Item Value
CPUs AMD Ryzen 7 4700U with Radeon Graphics (8 x 1996)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x1002, DEVICE=0x1636 [AMD Radeon(TM) Graphics], DRIVER_VENDOR=AMD, DRIVER_VERSION=31.0.21914.7005 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.9278
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) 23.23GB (9.74GB free)
Process Argv --crash-reporter-id 5d91e9e2-b9b4-4763-adcc-cb385ce9402f
Screen Reader no
VM 0%
Extensions (8)
Name Identifier Author Version
GitLens — Git supercharged eamodio.gitlens eamodio 19.2.0
EditorConfig editorconfig.editorconfig EditorConfig 0.18.2
C# Dev Kit ms-dotnettools.csdevkit ms-dotnettools 3.40.210
C# ms-dotnettools.csharp ms-dotnettools 2.160.4
.NET Install Tool ms-dotnettools.vscode-dotnet-runtime ms-dotnettools 3.2.0
PowerShell ms-vscode.powershell ms-vscode 2025.4.0
copy-visible-text noknownerrors.copy-visible-text noknownerrors 1.1.1
MSBuild project tools tintoy.msbuild-project-tools tintoy 0.6.7
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
4f60g487:31327383
envsactivate1:31551504
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
c3h7c220:31478652
ge8j1254_inline_auto_hint_haiku:31490510
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
46204921:31447328
ei9d7968:31496641
chat:31457767
8hig5102:31480529
89g7j272:31518289
i2gc6536:31499202
52612955:31516516
ddid_t:31478206
hmra_i5g22:31518061
ja75b849:31592442
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
jh5f2457_c:31540921
jbcp_cls_pctr_t:31531130
cp_intellij_t_nes:31548657
ahp-both-windows:31556933
ihg5j128:31534457
9gg7f176:31542112
enable_editor_pane_layout:31569726
allow-none:31555437
ac562147:31564510
c7c27ce7:31554789
1h923230:31564177
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
0d8dfbc3:31570291
switchtoauto:31559321
0c1h4866:31566224
session-mark-done:31591648
02ch2150:31593148
5b8j3302:31564601
autotiers:31584978
mangle-name-treatment:31572634
allow-signed-out:31592042
b17abb00-cfec-4134-90da-ee5e32ce4426:31589248
intellij_nes_preview_t:31580086
multiv2:31574985
2bfb8b39:31585911
outline:31581109
links-treatment:31587702
aw-autom-on:31583758
revealsession_control_7ed7e840:31582193
usage_tips_endabled_0911:31587631
4ab0b639:31584543
codex-agent-host-stable-editor:31593046
0485115c-2712-4002-b6e9-b5d4e30fb963:31586114
sessioninlinediffenabled_disabled:31587634
welcomesignin9359t:31590011
b169b0b1-b17e-475c-9032-91b9b24dde97:31589214
ca19f5eb-b04f-4f52-8e6b-9f6927d4e0dc:31589210
jb0cf204:31592432
9hh48893:31592434
permission_prompt_treatment:1332566
ccr_pr_nudge_adoption:1319471
vsc_wsm_c:1340633
ce50c479:1417073
1g5a5742:1379227
3aced641:1389836
jc553158:1433349
chat-subagents-default-to-auto-control:1436477
cmc_aa_t:1435711

Activity

  1. mkurz01 commented on Oct 1, 2026

    @mkurz01
    Author

    Further ki diagnostic detail: Both missing sessions still have local session data, and both session IDs are still present in the Agents Window's pinned-sessions state. However, neither session is returned by the current session listing, even when archived sessions are included. One of the missing sessions has a locally stored sub-chat as well.

    This may be a session discovery or migration issue rather than a problem with displaying the Pinned section. I have not modified the local session data.

  2. shreedharanand commented on Oct 1, 2026

    @shreedharanand

    I am experiencing the same issue. The chat for me is showing in Editor view & not in Agent view.

  3. interconnectedMe commented on Oct 8, 2026

    @interconnectedMe

    Possibly related to the missing-session-list issue I just reported: #340573

    On VS Code 1.141.0 (Ubuntu 26.04.1), the native Chat Sessions view is missing most existing Codex and Claude sessions even though both source filters are enabled. Resetting filters, Refresh, and Reload Window do not restore them. The local Codex database and VS Code's session-state store still contain records for the missing sessions. A trace snapshot resolved only three provider sessions while the state store contained 195 entries, including Codex and Claude resource URIs.

    Your report is specifically about pinned Agent Host sessions and a VS Code update, so I cannot confirm the same cause. Sharing this in case the list-discovery or registry behavior overlaps.

  4. interconnectedMe commented on Oct 8, 2026

    @interconnectedMe

    Follow-up to my earlier “possibly related” comment: we have verified a resolution for the Codex portion of #340573.

    "chat.editor.codex.preferAgentHost": false

    Setting this explicitly in the active profile restored Codex history and pinned chats immediately, before a window reload. They opened correctly in editor tabs and survived Developer Reload Window. Rolling back to 1.140.0 alone had not helped; we are now back on 1.141.0 with the setting retained and the Codex workflow working.

    Your report concerns pinned sessions in the Agents Window, whereas our verified recovery concerns the Codex extension in the regular workbench native Chat Sessions view. We have not established the same cause.

    Details and scope clarification: #340573

  5. alexdima commented on Nov 29, 2026

    @alexdima
    Member

    Thanks for the report. I tried this on VS Code Insiders 1.147 on macOS, signed in. I couldn't replay the update from the build before 1.140.0, so this only covers the current build:

    • I made three sessions in one workspace, pinned two of them from the row context menu, and gave one of the pinned sessions a nested chat with New Nested Session. Both showed under Pinned.
    • After Developer: Reload Window, both pinned sessions were still listed under Pinned, and the session with the nested chat still opened with both chats.

    Several fixes to how sessions are migrated from older builds landed after 1.141, for example #341904, #342062 and #340702. Could you check on the current Insiders whether the two sessions show up again? If they're still missing:

    • Which kind of sessions were they: Copilot CLI / agent host, Claude, Codex, or cloud?
    • Please attach the Agent Host log: run Developer: Show Logs..., then pick Agent Host.

    (The VS Code Sweeper rated this a bug and suggested keeping it open, but hadn't reproduced it either.)

    339049-pins-survive-reload.mp4

    🤖 Authored with GitHub Copilot on behalf of Alexandru Dima (@alexdima).

  6. added
    sessions-list
    agent-host
    info-needed
    on Nov 29, 2026
  7. mkurz01 commented on Dec 2, 2026

    @mkurz01
    Author

    Thanks for looking into this! I installed VS Code Insiders and can see both sessions again in the regular session list. Neither appears under Pinned. I’m using GitHub Copilot.

    This is no longer an issue for me, so feel free to close the ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agent-hostagents-windowinfo-neededsessions-list

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions