Skip to content

[BUG] /resume cannot load sessions created with older Claude Code versions #24290

Closed as not planned

Description

@M4hy4rgh

Preflight Checklist

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

What's Wrong?

/resume cannot load sessions created with older Claude Code versions

Description

Sessions created with Claude Code v2.1.12 do not appear in the /resume session list when using Claude Code v2.1.37. Only sessions created with the current version are visible.

Root Cause Investigation

After debugging, I found:

  • Old session files (v2.1.12) start with {"type":"file-history-snapshot",...} entries
  • New session files (v2.1.37) start with {"type":"summary",...} entries
  • v2.1.37 appears to only recognize the newer format and silently skips older sessions
  • The sessions-index.json file is not read by v2.1.37 — it scans .jsonl files directly
  • Deleting sessions-index.json does not trigger a rebuild
  • The old .jsonl files are valid JSON and still exist in ~/.claude/projects/

Additional Observations

  • Some old session .jsonl files are 20-22 MB despite having only 9-14 messages (index metadata), which may also contribute to them being skipped
  • Platform: Windows (MINGW64)
  • Project path includes OneDrive directory (unsure if relevant; however, it had been off since before I used Claude code.)

Environment

  • Current version: Claude Code v2.1.37
  • Old session version: Claude Code v2.1.12
  • OS: Windows 10/11 (MINGW64_NT)

Expected Behavior

  • /resume should either load sessions from older Claude Code versions or display a message indicating they are incompatible
  • Ideally, Claude Code should migrate older session formats automatically

Error Messages/Logs

No Previous Conversation.

Steps to Reproduce

  1. Have existing sessions created with Claude Code v2.1.12
  2. Update to Claude Code v2.1.37
  3. Run /resume
  4. Old sessions do not appear in the list (only visible after pressing Ctrl+W, and even then only newer-format sessions show)

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

v2.1.12

Claude Code Version

2.13.37

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other (Git bash)

Additional Information

At first, I was receiving something like "No previous conversation." I started talking with Claude Code itself for debugging, and after a while, I started to see the following, as shown in the image.

Image

Activity

  1. github-actions commented on Feb 9, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. Sessions without summary header don't appear in /resume picker #16579
    2. [BUG] Claude Code v2.x Cannot Resume Sessions Created/Used in v1.x - Version Incompatibility #13229
    3. Named sessions from older versions not resumable in v2.1.x #23933

    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

  2. stuarthalloway commented on Feb 9, 2026

    @stuarthalloway

    AI Disclaimer: This comment was researched and drafted using Claude Code (v2.1.37) powered by Claude Opus 4.6.

    Additional data point confirming this issue on macOS (Darwin 23.6.0), upgraded from ~v2.1.22 to v2.1.37 via Homebrew.

    Key finding: claude --resume <session-id> from the command line works, but /resume <session-id> within an active session does not. Both the picker (no args) and explicit session ID lookup fail within a session, while the CLI path succeeds with the same IDs. This suggests the in-session /resume and the command-line --resume use different code paths for session discovery.

    The sessions-index.json is intact (10 entries) and all .jsonl files exist on disk.

    See also #24434 (closed as duplicate of this issue).

  3. initjsk commented on Feb 10, 2026

    @initjsk

    Experiencing the same.

    If you want the search functionality without going through the json files, previous sessions are still being listed correctly in the Claude Code VSCode Extension.

  4. github-actions commented on Mar 11, 2026

    @github-actions

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

  5. github-actions commented on Mar 19, 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.

  6. locked as resolved and limited conversation to collaborators on Mar 19, 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

    area:corebugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on WindowsstaleIssue is inactive

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions