[BUG] /resume picker sometimes omits recent valid sessions from the same project

Status Closed — not planned
Reported on v2.1.231
Maintainer reply None cached
Activity 3 comments · opened Aug 13, 2026 · closed Aug 24, 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?

Sessions from the previous 1–2 days don't appear in the /resume picker for a project, even though
several other older/newer sessions for the same project do appear.

I manually inspected the underlying transcript files for the missing sessions and ruled out data
loss/corruption:

  • The JSONL files exist and are fully valid JSON (no truncation).
  • They are correctly scoped to the project's cwd.
  • They are not marked as sidechains.
  • No separate session index explains a stale list — ~/.claude.json only tracks a single

lastSessionId, not a full session list, so the picker appears to read the transcript directory
directly.

This looks like a display/ordering bug in the /resume picker rather than data loss, since
resuming directly by session ID works fine.

What Should Happen?

All valid, non-sidechain sessions for the current project should appear in the /resume picker,
regardless of how many days ago they occurred.

Error Messages/Logs

None — no error is shown, the sessions are just silently absent from the list.

Steps to Reproduce

  1. Work in a project across several days, accumulating multiple session transcripts under

~/.claude/projects/<project>/.

  1. Let some time pass with additional newer sessions created in the same project.
  2. Run /resume inside Claude Code in that project.
  3. Observe that some sessions from 1–2 days prior are missing from the list, despite their

transcript files being present, valid, and correctly scoped to the project.
Workaround: claude --resume <session-id> (session ID taken from the transcript filename) resumes
the missing session correctly.

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.231 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

Terminal/Shell:

  • zsh

View original on GitHub ↗

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