Skip to content

[BUG] Sessions >500MB not resumable despite frequent compacting #19963

Closed as duplicate

Description

@jerryblade

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?

Description:

Session grew to 568MB despite 48 manual compacts. Now it can't be resumed - /resume says "Session not found" even though the file exists.

Steps to reproduce:

  1. Long-running session with many file reads/edits
  2. Compact regularly with /compact
  3. Session still grows (tool_result content not pruned)
  4. Eventually session can't be resumed

Evidence:

  • File exists: b9c96563-...jsonl (568MB)
  • Session ID in file matches filename
  • Index rebuilds but doesn't include the session
  • Smaller sessions (<16MB) index and resume fine

Analysis:
48 compact boundaries in file
534 MB of user messages
532 MB of tool_result content

Compacting appears to summarize conversation but retains tool results, causing unbounded growth.

Expected: Compacting should prune old tool results OR large sessions should still be resumable.

Version: Claude Code 2.1.14

What Should Happen?

Compacting should prune old tool results OR large sessions should still be resumable.

Error Messages/Logs

Evidence:
- File exists: b9c96563-...jsonl (568MB)
- Session ID in file matches filename
- Index rebuilds but doesn't include the session
- Smaller sessions (<16MB) index and resume fine

Steps to Reproduce

Steps to reproduce:

  1. Long-running session with many file reads/edits
  2. Compact regularly with /compact
  3. Session still grows (tool_result content not pruned)
  4. Eventually session can't be resumed

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Claude Code 2.1.14

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

No response

Activity

  1. github-actions commented on Jan 22, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. [BUG] claude --resume shows "No conversations found" despite session directories existing #18311
    2. Cannot resume session when context exceeds limit - no way to compact before loading #14472
    3. [BUG] Past conversations not showing in dropdown - sessions-index.json not being updated. #18619

    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. added
    duplicateThis issue or pull request already exists
    and removed
    bugSomething isn't working
    has reproHas detailed reproduction steps
    platform:linuxIssue specifically occurs on Linux
    on Jan 25, 2026
  3. github-actions commented on Jan 25, 2026

    @github-actions

    This issue has been automatically closed as a duplicate of #18311.

    If this is incorrect, please re-open this issue or create a new one.

    🤖 Generated with Claude Code

  4. github-actions commented on Feb 1, 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.

  5. locked as resolved and limited conversation to collaborators on Feb 1, 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

    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