VSCode extension: past session history not shown after window is closed
Description
When using Claude Code via the VSCode extension on Windows, past conversations disappear from the session picker after closing and reopening the window. Only the current active session is shown under the "Local" tab.
Investigation
The session data (.jsonl files) is persisted correctly under ~/.claude/projects/<project>/. For example, my project has 12 saved sessions going back weeks.
However, the ~/.claude/sessions/ directory (which appears to be the index the UI reads from) only keeps entries for currently running PIDs. Once a window is closed and the process dies, the session entry is removed from the index — making the conversation invisible in the session picker, even though the data still exists on disk.
Expected behavior
All past sessions for the current project should remain visible and resumable in the session picker, not just the currently active one.
Environment
- Claude Code VSCode extension
- Windows 11 Pro 10.0.26200
- Working directory: UNC network path (
\server\share\)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗