claude-code - 💡(How to fix) Fix VS Code extension session history missing old sessions [2 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#47746Fetched 2026-04-15 06:43:26
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×4commented ×2cross-referenced ×1

The VS Code extension's session history picker does not show previously created sessions from the same VS Code extension. Sessions created from the Claude Code desktop app are visible in the desktop app's history, but VS Code sessions are not visible in the VS Code extension's session picker.

Root Cause

The VS Code extension's session history picker does not show previously created sessions from the same VS Code extension. Sessions created from the Claude Code desktop app are visible in the desktop app's history, but VS Code sessions are not visible in the VS Code extension's session picker.

RAW_BUFFERClick to expand / collapse

Description

The VS Code extension's session history picker does not show previously created sessions from the same VS Code extension. Sessions created from the Claude Code desktop app are visible in the desktop app's history, but VS Code sessions are not visible in the VS Code extension's session picker.

Steps to Reproduce

  1. Work in a VS Code Claude Code extension session for an extended period (e.g., 10+ hours)
  2. Close the session
  3. Open VS Code again and check session history
  4. Old VS Code sessions do not appear in the picker

Observed Behavior

  • Session history in VS Code extension does not show previously created VS Code sessions
  • Sessions created via Claude Code desktop app appear correctly in the desktop app's history
  • The session data does exist on disk at ~/.claude/projects/<project>/ with full .jsonl conversation logs

Expected Behavior

All sessions for the current project should appear in the VS Code extension's session history, regardless of which entrypoint (VS Code, desktop, CLI) created them.

Specific Example

Session 3ef9b200-77ce-452b-a08f-7275327d436c:

  • Entrypoint: claude-vscode
  • Created: 2026-04-13 11:23 — Last modified: 2026-04-13 22:37
  • Size: 20MB .jsonl file
  • Features used: remote control enabled
  • Status: Data exists on disk, but does not appear in VS Code session picker

Session Statistics (this project)

EntrypointSessions
claude-desktop62
claude-vscode17
cli9
No marker14

Total: 103 sessions with .jsonl files, 157 session directories.

Environment

  • Claude Code version: 2.1.90
  • OS: Windows 11 Pro 10.0.26200
  • Node: v20.18.0
  • Platform: win32

extent analysis

TL;DR

The VS Code extension's session history picker may not be correctly reading or processing the existing session data from the ~/.claude/projects/<project>/ directory.

Guidance

  • Verify that the session data files (.jsonl files) in the ~/.claude/projects/<project>/ directory are correctly formatted and not corrupted.
  • Check the VS Code extension's configuration and settings to ensure it is pointing to the correct directory for session history.
  • Investigate if there are any differences in how sessions created from the VS Code extension versus the desktop app are stored or formatted that could be causing the issue.
  • Review the extension's code for any potential bugs or limitations in reading session history, particularly for sessions created from within the VS Code extension itself.

Example

No specific code example can be provided without more details on the extension's implementation, but checking the file system access and data parsing logic in the extension's codebase may be a good starting point.

Notes

The issue seems to be specific to the VS Code extension's ability to read or display its own session history, as sessions from the desktop app are visible in the desktop app's history. The fact that session data exists on disk but is not visible in the VS Code extension suggests a potential issue with how the extension reads or processes this data.

Recommendation

Apply a workaround by manually checking the ~/.claude/projects/<project>/ directory for session files and attempting to load them manually in the VS Code extension, if possible, to verify if the issue is with the extension's session history display logic rather than the session data itself.

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