VSCode extension: session picker only ever shows current session, never history (data intact on disk)
Status Open
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 3 comments · opened Aug 4, 2026
Environment:
- Extension:
anthropic.claude-codev2.1.218 (win32-x64) - OS: Windows 11 Pro (10.0.26200)
- Workspace: single folder, no multi-root
Symptom:
The session picker (clock icon, top right, "Local" tab) shows only the currently running session ("Untitled"). None of the previous sessions appear, even via the time filter or search.
Reproduction:
- Ran multiple sessions in the same workspace over several days/weeks.
- Opened the session picker → only the current session is visible.
- Ran
Developer: Reload Window→ picker still empty except for a new "Untitled" session. - Fully restarted VS Code → same result.
- Pressed
Ctrl+Ainside the picker (docs say this should broaden the view to all projects on the machine) → no change.
Evidence this is a display bug, not data loss:
~/.claude/projects/<project-hash>/contains 18 complete, valid.jsonlsession files spanning 2026-07-21 to 2026-08-04, >16 MB total, none truncated or corrupt.- The workspace's
state.vscdb(workspaceStorage/<hash>/state.vscdb) has no separate session-index cache relevant to the picker that could be reset —chat.ChatSessionStore.indexonly references one empty, unused native VS Code chat session from 2026-07-21, unrelated to the real Claude sessions. - The issue was already reported inside one of the now-invisible sessions itself ("wenn visual studio code geschlossen wird, werden die claude chats nicht mehr angezeigt, auch nicht in der historie") — so it's reproducible across multiple days/restarts, not a one-off.
Expected behavior: The session picker should list all past sessions for the current project (and, per documented Ctrl+A/Ctrl+W behavior, all projects/worktrees on request).
Actual behavior: Picker only ever shows the current session, regardless of reload, restart, or Ctrl+A.
3 Comments
Confirming this on Windows too (VS Code extension, entrypoint: "claude-vscode").
What I found while digging into this:
The 18 JSONL files are intact and the CLI can resume them, so this is a VS Code session-list visibility problem rather than missing conversation history. The fact that one missing file was created by
claude-vscodein the same workspace also rules out a foreign project path as the explanation.I built
BasedGPT/claude-code-session-recoveryfor related VS Code session-list failures. Runpython tools/diagnose.pyfirst and follow the exact command it prints. If it routes you torecover_vscode_sessions.py, run the dry run to see which complete transcripts it would add, then keep VS Code fully closed before applying it. For one immediate check, runclaude --resume <session-id>against a file the extension is hiding; that confirms the transcript itself is still usable.The extension needs to enumerate sessions created by its own
claude-vscodeentrypoint as well as the currently active one, instead of treating a display omission as if the conversation did not exist.Hope this helps, if my tools are able to help you, would appreciate a ⭐ :)
Can confirm this is still happening (VS Code extension, Windows 11), and independently reproduces @jjnxpct's findings above.
One practical gotcha for anyone trying the
claude --resumeworkaround: there's no globally installedclaudeCLI on my machine (not on PATH, not npm-installed) — the extension ships its own binary. Found it at:Running
claude.exe --resume <session-id> -p "<prompt>"against a session that was missing from the picker worked correctly and returned a contextually accurate answer, confirming it reads the real transcript — same conclusion as above: display-only bug, no data loss.