Closed as duplicate
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists
Description
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:
- Long-running session with many file reads/edits
- Compact regularly with /compact
- Session still grows (tool_result content not pruned)
- 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 fineSteps to Reproduce
Steps to reproduce:
- Long-running session with many file reads/edits
- Compact regularly with /compact
- Session still grows (tool_result content not pruned)
- 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
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists
Activity
github-actions commentedon Jan 22, 2026
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
github-actions commentedon Jan 25, 2026
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
github-actions commentedon Feb 1, 2026
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.