Skip to content

Never compact idle threads unless the user chooses to - #8

Merged
greaber merged 1 commit into
grant/mainfrom
grant/idle-compaction-off
Nov 12, 2026
Merged

greaber merged 1 commit into
grant/mainfrom
grant/idle-compaction-off

Conversation

@greaber

@greaber greaber commented Nov 12, 2026

Copy link
Copy Markdown
Owner

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.

Check SHA Result
`vp test run` contracts settings, shared serverSettings, server serverSettings, IdleCompaction, web scopedSettings, ManagedPolicy 17d8873 (before a comment-only edit) 202 pass
`vp run check:changed` 17d8873 (before a comment-only edit) pass
pre-commit fmt, lint, knip 17d8873 pass

🤖 Generated with Claude Code

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>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:S labels Nov 12, 2026
@greaber
greaber merged commit 43372b4 into grant/main Nov 12, 2026
9 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant