Skip to content

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

Description

@yoootam-arch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions