Problem#
Since #16631 and #17127, a Claude thread over 100k tokens that has been idle for 70 minutes compacts before the next send. The chip turns that off for one send only. The permanent opt-out is a localStorage flag, and the only way to set it is answering "Don't ask again" in Claude's own resume prompt. #16631 notes that prompt has not appeared in real data since the v2 orchestrator. Users who would rather pay for a cold cache than lose history have no setting for this. #15769 is the earlier report of the same friction.
Expected: a user can turn the behavior off once and keep a plain send button in every Claude thread.
Change#
- A
claudeResumeCompactionEnabled client setting, default true, shown as Compact old Claude threads in Settings > General with search terms and a reset button.
ChatView reads the setting where it read the t3code:resume-compaction-dismissed:* localStorage key, and the key is removed. Answering "Don't ask again" in the native prompt now turns the setting off.
- The Claude provider doc says where to turn it off.
Scope and approval#
This is a configuration option for an established capability: compact-before-send from #8144, #16631, and #17127. The default stays on, so nobody's behavior changes unless they turn it off. Off does exactly what the existing permanent dismissal already did, and the thresholds, the chip, and the send path are untouched. Server and mobile are untouched.
Users who set the old localStorage flag lose it, so the offer comes back until they turn the setting off. I chose not to migrate it because the flag was per environment and per provider instance, and the setting is per client.
Verification#
vp test run packages/contracts/src/settings.test.ts apps/web/src/components/settings/settingsSearch.test.ts apps/web/src/components/chat/ContextWindowMeter.logic.test.ts: 243 passed, including a new decode test for the default and the opt-out.
tsc --noEmit is clean for apps/web and packages/contracts. vp lint reports no new warnings in the changed files.
- Isolated dev server (
vp run dev --home-dir <tmp>) with the thresholds lowered locally to 1 token and 0 minutes (not committed). I ran one Claude Haiku 5.5 turn, typed a draft, and captured the same thread and draft with the setting on and off. The switch kept its value across a reload.
Settings row:

Setting on. The composer shows the Compact 122k chip, and the send button's tooltip reads "Summarize 122k tokens of history, then send" (accessible name "Compact and send"):

Setting off. Same thread and draft. The chip is gone, and the send button is a plain "Submit message":

I could not pair a browser on current main without a local workaround. consumeAvailablePairingLinkRow in apps/server/src/persistence/AuthPairingLinks.ts binds ${requestedScopes === undefined}, a JS boolean, and Node's SQLite rejects it with "Provided value cannot be bound to SQLite parameter 5". Every pairing exchange returns HTTP 500. For this test I bound 1 : 0 locally and did not commit the change. It is unrelated to this PR, so I'll file it separately.
Built with Claude Opus 5.5 in Claude Code, driving T3 Code.
🤖 Generated with Claude Code
📝 Walkthrough
Walkthrough#
The change adds a default-enabled client setting for Claude resume compaction. ChatView uses the setting to control compaction availability, and General settings provides a searchable toggle and reset action.
Changes#
Claude Resume Compaction
packages/contracts/src/settings.ts,packages/contracts/src/settings.test.tsClientSettingsSchemaaddsclaudeResumeCompactionEnabled, defaulting totrue. The patch type accepts the optional field. Tests cover the default and explicitfalsevalues.apps/web/src/components/ChatView.tsxuseUpdateClientSettingsinstead of storing a local dismissal flag.apps/web/src/components/settings/SettingsPanels.tsx,apps/web/src/components/settings/settingsSearch.ts,docs/user/providers-claude.mdPriority: ⬇️ Low
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Feature
Possibly related PRs
/compactin idle, high-context Claude threads. This PR updates the related ChatView behavior and adds a client setting that native resume compaction can disable.Suggested labels:
size:MSuggested reviewers:
juliusmarmingeMerge Risk: 🟡 Moderate · up to
cee3dUsers who chose "Don't ask again" on a Claude thread cannot reliably turn "Compact old Claude threads" back on. Opening that thread, or having it open when they restore defaults, silently switches the setting off again. This should be fixed before merge.
Security Architecture Review#
Security architecture risk: 🔵 Low · up to
cee3dAn earlier thread dismissal can override a later decision to re-enable or reset compaction, affecting other Claude threads on the same client. The demonstrated impact is preference ownership and recovery behavior, not new privileged access.
Retained concerns
Security review details
Security Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands.