claude-code - 💡(How to fix) Fix [BUG] VSCode extension: session history dropdown shows only active session despite valid .jsonl files on disk [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#60736Fetched 2026-05-20 03:50:53
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×5commented ×1

Error Message

Error Messages/Logs

Fix Action

Workaround

claude --resume from the bundled native binary at <extension>\resources\native-binary\claude.exe lists all 23 sessions correctly. The data path works; only the in-panel dropdown rendering is broken.

Code Example

# 23 sessions on disk
PS> (Get-ChildItem "$env:USERPROFILE\.claude\projects\s--Projects-2026-26-007-AI-Stack\*.jsonl").Count
23

# All sessionIds match filenames (no corruption)
Checked 23, mismatches 0

# All cwds normalized and consistent
s:\Projects\2026\26-007_AI Stack22 sessions (the 23rd is the active one)

# Only one workspaceStorage UUID points at this project (no fragmentation)
dcbf9494b54ab7125e1454736b5df2e2

# Only the lowercase bucket folder exists (no phantom uppercase-S bucket)
s--Projects-2026-26-007-AI-Stack

---
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Claude Code VSCode extension: session history dropdown shows only the active "Untitled" session despite 23 valid .jsonl files on disk

Environment

  • Extension version: anthropic.claude-code 2.1.145 (latest as of 2026-05-19)
  • VSCode: stable, Windows
  • OS: Windows 11 Pro 10.0.26200
  • Bucket: C:\Users\xxxxx\.claude\projects\s--Projects-2026-26-007-AI-Stack\

Symptom

The Claude Code panel's session-list dropdown (the "Local" tab in the history popover at the top-right of the panel) shows only the currently active "Untitled" session. All 23 prior .jsonl session files in the bucket are absent from the list.

Behavior is recurring across VSCode restarts — every fresh launch shows an empty dropdown, even though new sessions are written to the bucket correctly.

Verified intact

# 23 sessions on disk
PS> (Get-ChildItem "$env:USERPROFILE\.claude\projects\s--Projects-2026-26-007-AI-Stack\*.jsonl").Count
23

# All sessionIds match filenames (no corruption)
Checked 23, mismatches 0

# All cwds normalized and consistent
s:\Projects\2026\26-007_AI Stack  →  22 sessions (the 23rd is the active one)

# Only one workspaceStorage UUID points at this project (no fragmentation)
dcbf9494b54ab7125e1454736b5df2e2

# Only the lowercase bucket folder exists (no phantom uppercase-S bucket)
s--Projects-2026-26-007-AI-Stack

What was tried before filing

  1. Normalized mixed-case S: vs s: cwd entries across all session files (cwd casing not the filter).
  2. Removed 4 stale workspaceStorage UUIDs that pointed at older renames of this project. Only the canonical UUID for 26-007_AI Stack.code-workspace remains.
  3. Confirmed sessionId in each .jsonl matches the filename UUID.
  4. Confirmed extension version 2.1.145 is current — no newer build available on marketplace.
  5. Reading extension.js: session enumeration goes through pZk_0X_0J_0. On paper pZ should return every .jsonl whose filename parses as a UUID. Could not finish tracing the downstream filter through the minified bundle.

Workaround

claude --resume from the bundled native binary at <extension>\resources\native-binary\claude.exe lists all 23 sessions correctly. The data path works; only the in-panel dropdown rendering is broken.

Asks

  1. Trace what filter the dropdown is applying that the CLI --resume picker doesn't.
  2. If the dropdown is intentionally scoped to "this panel's session" rather than "bucket history," surface that distinction in the UI and document the right entry point for full history.

What Should Happen?

The session-list dropdown in the Claude Code panel should list all valid .jsonl sessions in the bucket for the current workspace's cwd — the same set that the bundled claude --resume CLI picker shows. Currently it shows only the active session, making prior chat history appear lost across VSCode restarts even though all session files are intact on disk.

Error Messages/Logs

Steps to Reproduce

  1. Use the Claude Code VSCode extension (v2.1.145, latest) in a project over multiple sessions, accumulating 20+ chat sessions in the bucket at ~/.claude/projects/<encoded-cwd>/.
  2. Confirm via filesystem that the bucket contains 20+ valid .jsonl files, each with a sessionId matching its filename UUID and a consistent cwd field.
  3. Close VSCode and reopen it via the canonical workspace file.
  4. Open the Claude Code panel and click the clock/history icon (top-right) to expand the session-list dropdown ("Local" tab).
  5. Observe: the dropdown lists only the currently active "Untitled" session. None of the prior 20+ sessions appear, despite all files being intact on disk.
  6. Cross-check: run the bundled CLI <extension-path>\resources\native-binary\claude.exe --resume from a terminal in the same project. The CLI picker correctly lists all 20+ sessions and resumes any of them with full history.

Conclusion: the data layer is fine; only the in-panel dropdown rendering is filtering them out.

Environment:

  • Extension: anthropic.claude-code 2.1.145
  • VSCode: stable, Windows 11
  • Bucket path: C:\Users\xxxxx.claude\projects\s--Projects-2026-26-007-AI-Stack\ (23 .jsonl files, 30 MB)
  • Only one workspaceStorage UUID points at the workspace (no fragmentation)
  • All sessionIds match filenames; all cwds consistent

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.145 (Claude Code)

Platform

Other

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] VSCode extension: session history dropdown shows only active session despite valid .jsonl files on disk [1 comments, 2 participants]