You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Aggressive clearing of conversation history at ~2k tokens on Opus 4.6 (1M context) v2.1.89 #42136
Possibly a regression of the fixes from v2.1.21 / v2.1.75 / v2.1.88
What Should Happen?
Conversation history should remain visible and scrollable for the entire session and not get auto cleared at ~2.0k tokens on a 1M context window.
Error Messages/Logs
No error messages displayed. No dedicated log files found in~/.claude/. The compaction happens silently — conversation history simply disappears with no warning or error. The only indicator is the "Simmering" status showing ↓ 2.0k tokens.
Steps to Reproduce
Run Claude Code v2.1.89 (CLI in terminal)
Model: Opus 4.6 (1M context), Claude Max subscription
Platform: Linux (WSL2 on Windows)
Start a new conversation (claude or /clear)
Perform a multi-turn session with tool-heavy operations (running shell scripts with large output, spawning subagents, reading files)
After ~5-6 turns, conversation history above the current exchange is compacted away
The ↓ token counter shows ~2.0k tokens — far below the 1M context limit
Cannot scroll up to see earlier messages
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
Unknown
Claude Code Version
2.1.89
Platform
Anthropic Console (Claude Max)
Operating System
Windows
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
Last known working version was around 2.1.86. The issue started appearing recently around v2.1.88-2.1.89.
Reacted by Jason Hobbs, Ale Zanello, Chris Coey and Wasi Rizvi
changed the title [-][BUG] Context compaction aggressively clears conversation history at ~2k tokens on Opus 4.6 (1M context) v2.1.89[/-][+][BUG] Aggressive clearing of conversation history at ~2k tokens on Opus 4.6 (1M context) v2.1.89[/+]on Apr 2, 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.
Activity
jhobbs commentedon Apr 1, 2026
hitting this as well, similar setup except using terminator on a remote box via ssh. ubuntu desktop.
matheus-rodrigues-nephi commentedon Apr 1, 2026
seeing same thing on my side
AleSZanello commentedon Apr 1, 2026
Same issue in v2.1.89
I have a previous session on v2.1.87 and can't trigger this behavior, even the CTRL+O doesn't show anything
PurgeGame commentedon Apr 1, 2026
I also have this issue. Regularly clearing history without affecting context.
[-][BUG] Context compaction aggressively clears conversation history at ~2k tokens on Opus 4.6 (1M context) v2.1.89[/-][+][BUG] Aggressive clearing of conversation history at ~2k tokens on Opus 4.6 (1M context) v2.1.89[/+]andrewkm commentedon Apr 2, 2026
#41814
github-actions commentedon Apr 10, 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.