Repository navigation
Never compact idle threads unless the user chooses to - #8
Merged
Merged
Conversation
How long the user was away says nothing about whether a thread needs summarizing; Claude Code already compacts when the context nears its limit. A server without a saved choice or policy value now defaults to Never. Saved choices, including the legacy switch, are kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
T3 Code's Compact idle threads defaulted to When you return. Any Claude thread over 200,000 tokens that has been idle past the prompt-cache TTL got a `/compact` before the next message. How long the user was away says nothing about whether the conversation needs summarizing, and Claude Code already compacts when the context nears its limit. So this lossy summary was happening for no quality reason.
A server with no saved choice and no policy value now defaults to Never. The default applies where the server loads its own settings file (`loadSettingsFromDisk`), not in the shared `globalIdleCompaction` reader. Clients use that reader to interpret older servers' legacy boolean, which still means "When you return" there. Saved choices, including the legacy `compactIdleThreads` switch, are kept.
Existing servers whose file already records `"idleCompaction": "onReturn"` keep it. Upstream servers write that field on every save, so most existing installs need the setting changed once.
🤖 Generated with Claude Code