Repository navigation
Conversation
…ending A Claude thread over 100K tokens compacts before the next send once its prompt cache expires. With an API key, Bedrock, or Vertex that cache lasts 5 minutes, so short breaks summarize away detail. Add a "Compact old Claude threads" client setting (on by default) that turns the offer off. The setting replaces the hidden local-storage dismissal that mirrored Claude's native "Don't ask again" answer, which nothing in the UI could undo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR adds a default-on production setting that controls whether substantial Claude thread compaction runs before sending, while replacing the prior hidden dismissal behavior. The resulting product-default and existing-user behavior changes require human review. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
Closing as a duplicate of #18486. It adds the same setting, came first, and keeps existing opt-outs working. |
Summary
A Claude thread over 100K tokens compacts before your next message once its prompt cache expires (#17945). With an API key, Bedrock, or Vertex the cache lasts 5 minutes, so a short break summarizes away detail, and the only way to skip it is to click the chip on every send. This adds a Compact old Claude threads switch in Settings → General → Behavior, on by default.
ProviderInstanceRegistryreconcile), so a switch there would restart Claude on every toggle. Only the web composer acts on it, and mobile has no compact offer.Evidence
/compactruns (123K → 10.8K) and the message queues behind it. No setting to stop it.After: with the switch off,
resumeCompactionTokensisnull, so there's no chip and Enter sends with full history. With it on (the default), behavior is unchanged.settings.test.ts:decodeClientSettings({}).compactOldClaudeThreads === true(existing installs keep today's behavior), andfalseround-trips through settings and patch.vp test runon the 4 touched test files: 251 passed.tsc-rs --noEmitclean for web, contracts, and shared.vp linton changed files: no new warnings (ChatView has the same 89 asmain).I didn't run the app, so there are no screenshots yet.
Merge Danger
Door: two-way
Anyone who answered "Don't ask again" in Claude's native prompt will see the Compact chip again, because the old local-storage flag is no longer read. They can turn the new switch off.
Blast Radius: composer
Only whether the Compact chip appears changes. Compaction itself, the context meter's Compact context action, and
/compactare untouched.Done by Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code