[BUG] VSCode extension session picker does not show sessions from previous days

Resolved 💬 3 comments Opened Mar 31, 2026 by annazakrutkina Closed Apr 4, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Description:

The session picker in the VSCode extension ("Local" tab) only shows a small number of sessions and fails to find sessions by ID search, even though the underlying .jsonl files exist on disk.

Steps to reproduce:

Use Claude Code VSCode extension across multiple days
Open session picker (Local tab)
Search for a session ID from a previous day — e.g. 591f3e07
Result: "No sessions found"

What Should Happen?

Expected behavior:
All sessions with .jsonl files in ~/.claude/projects/<project>/ should be discoverable in the picker.

Actual behavior:
Only sessions currently registered in ~/.claude/sessions/ (active PID files) appear. Yesterday's completed sessions are invisible to the picker, even by exact ID search.

Evidence:

Files confirmed on disk: 591f3e07-.jsonl (1.4 MB, last activity Mar 30 22:23), e575b21b-.jsonl (1.9 MB, last activity Mar 30 22:23), and others
All .jsonl files in the project directory have mtime of Mar 31 13:03 — suggesting a bulk rewrite on startup that may have broken the index
CLI --resume <session-id> can still access these files directly
Environment:

Claude Code VSCode extension
macOS 15 (Darwin 25.3.0)
Project: local directory (non-git)

Error Messages/Logs

Steps to Reproduce

Steps to reproduce:

Use Claude Code VSCode extension across multiple days
Open session picker (Local tab)
Search for a session ID from a previous day — e.g. 591f3e07
Result: "No sessions found"

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

1.1.9493

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Cursor

Additional Information

_No response_

View original on GitHub ↗

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