Skip to content

Copilot Chat Sessions Not Appearing in History After Creating New Session #298565

@or-levy

Description

@or-levy

Type: Bug

I am experiencing an issue with Copilot Chat session history in VS Code. After working within a chat session and then clicking "New Session", the previous session does not appear in the Sessions or history panel on the side.

However, I can confirm that the session data is still being saved locally on my machine (in the history/storage folders), so it does not seem to be deleted. The issue is specifically with visibility and retrieval in the UI.

This makes it difficult to track previous conversations and continue working with earlier sessions, as they are no longer accessible through the interface.

Steps to reproduce:

  1. Start a new chat session
  2. Interact normally with the agent
  3. Click "New Session"
  4. Observe that the previous session does not appear in the Sessions/history panel

Expected behavior:
Previous sessions should remain visible and accessible in the Sessions/history panel after creating a new session.

Actual behavior:
Previous sessions are not shown in the UI, even though they exist locally.

Extension version: 0.37.9
VS Code version: Code 1.109.5 (0725862, 2026-02-19T19:43:32.382Z)
OS version: Windows_NT x64 10.0.26100
Modes:

Logs
Trace: [PlanAgentProvider] Wrote agent file: vscode-userdata:/c%3A/Users/or/AppData/Roaming/Code/User/globalStorage/github.copilot-chat/plan-agent/Plan.agent.md
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
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: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: CodeSearchChunkSearch.updateIndexedCommitForAllRepos
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
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: [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: [context keys] Window state change. Needs offline check: false, active: true, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: false, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: false, focused: true.
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
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: [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: [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: [NES][Triggerer][onDidChangeTextDocument] Return: undo/redo
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: undo/redo
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
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.
Request IDs
90168c38-da40-4b5f-a405-fa5a219daf33
a224ed29-5c21-4f46-b3bd-b2c314874fd3
0267c85b-fb92-40c4-8e7c-58395ca49af7
05480cb0-04c2-46bf-b7ca-78bc195cb886
a217bfdb-2f94-4ca4-961e-2ee065389271
19a4da4f-efff-4470-9c09-4b8c7928284e
df65fa8c-98da-4a5f-9dbe-b138ae87264c
9b1790d5-2e13-407e-a037-8a9ef2a6231e
c6a1665b-d29c-4af2-a659-96be7a60e758
System Info
Item Value
CPUs Intel(R) Core(TM) Ultra 5 135U (14 x 2688)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0x7d45 [Intel(R) Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.8247 ACTIVE
GPU1: 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) 15.46GB (2.84GB free)
Process Argv --crash-reporter-id 678b4775-d807-4bd8-a94d-8b879d6bc912
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
4f60g487:31327383
6abeh943:31336334
envsactivate1:31464700
cloudbuttont:31379625
aihoversummaries_f:31469309
3efgi100_wstrepl:31403338
use-responses-api:31390855
je187915:31401257
ec5jj548:31422691
cp_cls_t_966_ss:31454198
4je02754:31466945
ge8j1254_inline_auto_hint_haiku:31431912
nes-autoexp-off:31446584
a5gib710:31434435
00h15499_gpt_53_codex:31464543
7a04d226_do_not_restore_last_panel_session:31438103
gpt_5_3_codex_f4456sfsd:31465102
cp_cls_c_1081:31454833
copilot-nes-oct-trt:31432596
ia-use-proxy-models-svc:31452481
a43f0574:31442827
e9c30283:31461165
ts_provider_disabled:31458191
nes-conv-2-3:31462665
g_63ac8346:31467999
9c05b404_max_request_50:31468594
idci7584:31464702
edit_mode_hidden:31461530
nostats:31457175
3bj34942:31461205
864ei723_large_tool_results_to_disk:31460878
nes-extended-on:31455476
chat:31457767
thinking_effort_h:31469317
githubstableflight:31469463

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