Skip to content

/resume missing sessions: sessions-index.json out of sync with actual session files #25552

Closed as not planned

Description

@candh

Bug

/resume doesn't show all past conversations. Sessions exist on disk as .jsonl files but are missing from sessions-index.json, making them invisible to the /resume picker.

Repro

  1. Use Claude Code extensively over time (~160+ sessions)
  2. Run /resume — only a subset of sessions appear
  3. Compare actual .jsonl files on disk vs entries in sessions-index.json

Evidence

In my case:

  • 162 .jsonl session files on disk in the project directory
  • 98 entries in sessions-index.json
  • 64 sessions (~40%) are orphaned — fully intact on disk but invisible to /resume

The missing sessions can still be resumed by passing the UUID directly (claude --resume <uuid>), confirming the data is fine — it's just the index that's stale.

Expected behavior

All sessions should appear in /resume. The index should stay in sync with session files on disk, or /resume should fall back to scanning the directory.

Environment

  • macOS (Darwin 23.6.0)
  • Claude Code v2.1.38

Activity

  1. added
    bugSomething isn't working
    duplicateThis issue or pull request already exists
    platform:macosIssue specifically occurs on macOS
    on Feb 13, 2026
  2. github-actions commented on Feb 13, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. [BUG] sessions-index.json stops being updated after v2.1.31 — new sessions invisible to /resume #23614
    2. sessions-index.json not updated, causing claude --resume to show stale/missing sessions #25032
    3. sessions-index.json not updated - claude -c fails to find sessions #22462

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  3. scapeshift-ojones commented on Feb 16, 2026

    @scapeshift-ojones

    This issue is tracked in the consolidated report at #26123, which identifies 3 distinct root causes (index writes stopped Feb 4, picker hardcoded to 10-session batch, Windows worktree case-sensitivity) with source-level analysis and a one-line fix. Please add your thumbs-up there to help it reach the oncall triage threshold.

  4. scapeshift-ojones commented on Feb 16, 2026

    @scapeshift-ojones

    Your 👍 on the consolidated issue matters. Based on how this repo's automated triage works, issues need 50+ combined reactions and comments to trigger the oncall label — the only way a human at Anthropic actually reviews it. Right now the engagement is split across 12+ duplicate issues and none will ever hit that threshold alone.

    The consolidated issue with full root cause analysis (3 bugs identified, one-line fix included) is here: #26123

    Please go add your 👍 there. That's the single most useful thing you can do to get this fixed.

  5. scapeshift-ojones commented on Feb 17, 2026

    @scapeshift-ojones

    We're at 22 👍 on the consolidated issue — more than halfway to the 50 needed to get a human at Anthropic to look at this. Every thumbs-up on a duplicate issue is a thumbs-up that doesn't count. The automated triage bot only checks individual issues, not the cluster.

    Please take 5 seconds to 👍 here: #26123

    The root causes are fully identified, a one-line fix exists, and community repair scripts are available. The only thing missing is enough engagement on a single issue to cross the oncall threshold. We can get this fixed if we stop splitting our votes across 12 separate reports.

  6. github-actions commented on Mar 17, 2026

    @github-actions

    Closing for now — inactive for too long. Please open a new issue if this is still relevant.

  7. github-actions commented on Mar 26, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  8. locked as resolved and limited conversation to collaborators on Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already existsplatform:macosIssue specifically occurs on macOSstaleIssue is inactive

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions