VS Code extension session history disappears after switching workspace folders

Status Closed — duplicate
Maintainer reply None cached
Activity 3 comments · opened Apr 20, 2026 · closed Apr 24, 2026

Description

After accidentally switching the open folder in VS Code and switching back, the session history list in the Claude Code VS Code extension no longer shows previous sessions. Restarting the extension panel and fully closing/reopening VS Code did not fix it.

Steps to reproduce

  1. Open VS Code in a workspace folder (e.g., ~/Documents/docs/)
  2. Switch to a different folder in VS Code
  3. Switch back to the original folder
  4. Open the Claude Code session history

Expected behavior

All previous sessions for the original folder should reappear in the session history.

Actual behavior

The session history is empty or missing recent sessions, even though the .jsonl session files still exist on disk in ~/.claude/projects/.

Environment

  • macOS (Darwin 25.3.0)
  • Claude Code v2.1.63
  • VS Code extension

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗