VSCode extension: past session history not shown after window is closed

Resolved 💬 3 comments Opened Mar 30, 2026 by yoootam-arch Closed Apr 2, 2026

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\)

View original on GitHub ↗

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