VS Code extension session history disappears after switching workspace folders
Resolved 💬 3 comments Opened Apr 20, 2026 by JordanJudkinsNT 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
- Open VS Code in a workspace folder (e.g.,
~/Documents/docs/) - Switch to a different folder in VS Code
- Switch back to the original folder
- 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
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗