GeezerVison is showing github.com — feat(web): a setting to opt out of compact-before-send on old Claude threads by Kiri110K · Pull Request #18486 · pingdotgg/t3code
Conversation
Kiri110K
commented
Oct 12, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
On a large Claude thread that sat idle past its prompt cache, Enter runs /compact first and then sends your message. This is on by default, and there is no lasting way to opt out. The Compact chip only skips it for one message and turns itself back on after each send. Today the only lasting opt-out is a localStorage key set from DevTools. Users asked for a real setting in #17467 and in the Ideas discussion #17170.
This adds Compact old Claude threads to Settings > General, so compact-before-send becomes opt-out. It is on by default, so nothing changes unless you turn it off.
- On (default): same as today. On a stale large Claude thread, Enter compacts first. The Compact chip can still skip that for one message.
- Off: Enter always sends with full history, and the chip does not show. You can still compact by hand with Compact context in the context meter or by sending
/compact.
The setting is one more condition on the existing compact-before-send check in ChatView. It does not touch the t3code:resume-compaction-dismissed flag or the native "Don't ask again" answer, and only the switch writes it. The closed #17234 built the same setting but folded "Don't ask again" into it. Its effect replayed old dismissals and turned the setting off again after the user turned it on. Leaving both existing paths alone avoids that.
Why this is a configuration PR
This follows the focused configuration option route in CONTRIBUTING.
Not in this PR: compact-before-send ignoring Auto-compact after, raised in #17467. That is a separate problem.
Before and after
On is the default and matches main, so it is also the "before".
On (default): the chip shows. Enter runs /compact (32.4K → 1.69K tokens), then sends the queued message.

compact-on.mp4
Off: the same thread has no chip. Enter sends right away with full history.

compact-off.mp4
Proof
vp test run packages/contracts/src/settings.test.ts: 166 passed. The new test checks that the setting is on when nothing is stored and that an explicit off is kept. Without the schema change it fails with expected undefined to be true.
vp test run apps/web/src/components/chat/ContextWindowMeter.logic.test.ts: 23 passed. The setting feeds shouldOfferResumeCompaction, and a new test checks that an opted-out user is never offered compact-before-send. Without that check it fails with expected true to be false.
- The existing
settingsSearch.test.ts and SettingsPanels.restore.test.tsx pass.
- Typecheck passes for
apps/web and packages/contracts. Lint on the changed files has 0 errors. Its 97 warnings are the same as on main.
I tested on an isolated dev server with a real Claude Haiku 5.5 thread. I lowered the thresholds to 1 token and 1 minute locally. That change is not committed.
- On: the chip showed, and the send button was labeled "Compact and send". Enter ran
/compact, then the queued message, which Claude answered.
- Off: no chip, and the send button was labeled "Submit message". Enter sent the message right away, and Claude answered. In the dev database the thread's user messages are
OK, SECOND (off), /compact and THIRD (on), and FOURTH (off).
- The reset button shows only while the setting is off, and it turns the setting back on. Settings search finds the row for "full history".
Not checked: the packaged desktop app (it runs the same web code), and the real 100k token and cache TTL thresholds.
Created with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
robertnisipeanu, m9tdev, RaeesBhatti, rohitgirdhar, mikeqwe, and Ashkaan reacted with thumbs up emoji
…threads
Adds Compact old Claude threads to Settings > General. It is on by
default, so nothing changes unless you turn it off. Off skips
compact-before-send on stale Claude threads: the Compact chip does not
show, and Enter sends with full history.
Refs pingdotgg#17467
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Approvability
Verdict: Not approved
Macroscope's review found this PR not approvable — This adds a new General setting that gates compact-before-send on the production Claude send path and establishes a new default-on value in the shared settings contract. The implementation is focused and tested, but the product-default change warrants human review.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The Compact old Claude threads setting now feeds
shouldOfferResumeCompaction, next to its provider and threshold checks.
A focused test checks that an opted-out user is never offered
compact-before-send. Behavior does not change.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|

No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
3db7118e-fe79-4bff-b819-7cbbd042bf1d
📥 Commits
-
Reviewing files that changed from the base of the PR and between 52f9046 and 4aab6ff.
📒 Files selected for processing (8)
-
apps/web/src/components/ChatView.tsx
apps/web/src/components/chat/ContextWindowMeter.logic.test.ts
apps/web/src/components/chat/ContextWindowMeter.logic.ts
apps/web/src/components/settings/SettingsPanels.tsx
apps/web/src/components/settings/settingsSearch.ts
docs/user/providers-claude.md
packages/contracts/src/settings.test.ts
packages/contracts/src/settings.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
-
Walkthrough
The Claude resume-compaction preference defaults to enabled. Users can change it in General settings, restore its default, and search for it. ChatView passes the preference to the eligibility check, which suppresses the compaction offer when disabled.
Changes
Claude resume compaction
| Layer / File(s) |
Summary |
Define the preference packages/contracts/src/settings.ts, packages/contracts/src/settings.test.ts |
The settings schema defaults claudeResumeCompactionEnabled to true, and patches accept the optional boolean. Tests cover the default and preservation of an explicit false. |
Expose and restore the preference apps/web/src/components/settings/SettingsPanels.tsx, apps/web/src/components/settings/settingsSearch.ts, docs/user/providers-claude.md |
General settings adds a searchable switch and reset action. Restore-default handling includes the setting. The Claude provider documentation identifies the setting as the control for sending full history. |
Gate the compaction offer apps/web/src/components/chat/ContextWindowMeter.logic.ts, apps/web/src/components/ChatView.tsx, apps/web/src/components/chat/ContextWindowMeter.logic.test.ts |
The eligibility function returns false when the setting is disabled. ChatView passes the setting to the function. Tests pass enabled: true for existing cases and cover the disabled case. |
Priority: ➖ Normal
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Feature
Possibly related PRs
- pingdotgg/t3code#15773: Adds a
compactBeforeResumeEnabled setting and gates the ChatView send path through resume-compaction eligibility.
- pingdotgg/t3code#17234: Adds the same Claude resume-compaction preference, settings UI, restore handling, documentation, and ChatView integration.
Suggested reviewers: juliusmarminge
Merge Risk | ⚪ Minimal · up to 4aab6
-
Merge Risk: ⚪ Minimal · up to 4aab6
The new preference lets users opt out of automatic compact-before-send for older Claude threads while leaving manual compaction available. No actionable merge-blocking risk remains.
-
Security Architecture Review
-
Security architecture risk: ⚪ Minimal · up to 4aab6
The preference preserves existing behavior by default and makes an existing manual choice persistent. The reviewed changes do not add remote authority, weaken authorization, or alter in-progress send recovery.
Retained concerns
No architecture-level concerns identified.
-
Security review details
-
Security Blast Radius
- inferred — The new control affects eligible Claude threads using the stored client preference. Its ownership remains local to the client; the inspected write path does not grant control over server settings or other shared environments.
Trust Boundaries and Controls
- inferred — No new remote operation or authority transition was identified in the compared preference-to-send path. Opting out suppresses an existing compaction prelude; it does not bypass a newly altered authorization control.
Pre-merge checks | 4
-
✅ Passed checks (4 passed)
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly and concisely describes the main change: adding a setting that opts users out of compact-before-send for old Claude threads. |
| Description check |
 |
The description covers the problem, behavior change, configuration scope, default behavior, compatibility constraints, screenshots, focused verification, manual testing, and untested areas. It uses di… |
| Linked Issues check |
 |
No active directly linked issue remains. Issue #17234 is closed and supplies historical context only. Therefore, no linked-issue coding requirement applies to this pull request. |
| Out of Scope Changes check |
 |
The reported changes implement the stated configuration option. They update the client setting schema, ChatView gating, General settings UI, search, tests, and Claude documentation. These changes supp… |
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Question for the maintainers: does the feature even make sense at all? While an option to disable the annoying feature is much better than being forced to use it, in my opinion the feature doesn't even make sense.
Running /compact with a cold-cache is exactly the same as sending any other prompt directly. The compact itself sends the entire thread and is processed by the same model that would've processed the normal prompt. It's still a cache-miss that gets billed as input.
|
RaeesBhatti, scmart, rohitgirdhar, tichikawa14, mikeqwe, adamfgr, playcations, and pitriq reacted with thumbs up emoji
m9tdev and RaeesBhatti reacted with laugh emoji
All reactions
-
👍
8 reactions
-
😄
2 reactions
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Question for the maintainers: does the feature even make sense at all? While an option to disable the annoying feature is much better than being forced to use it, in my opinion the feature doesn't even make sense. Running /compact with a cold-cache is exactly the same as sending any other prompt directly. The compact itself sends the entire thread and is processed by the same model that would've processed the normal prompt. It's still a cache-miss that gets billed as input.
This features makes absolutely no sense, I can't think of a single instance where this new behavior is helpful or good.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
watson
commented
Oct 13, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
One more reason this setting matters, and a case for changing the default too. With an API key, Bedrock, or Vertex, Claude Code writes 5-minute cache entries, and since #17945 the Compact chip follows that TTL. So any Claude thread over 100K tokens compacts before the next message once it has been idle for 5 minutes. I hit it at 123K → 10.8K tokens through a company API gateway.
That isn't only breaks. With two threads going, coming back from the other one often takes more than 5 minutes. Most of my sends into large threads came 1 to 4 minutes after the last turn, right at the edge. So once a thread passes 100K, the chip keeps coming back, and in practice these threads stay around 100K even on a 1M model. A toggle that resets after every send doesn't help much there.
This setting fixes it for anyone who finds it. I'd also suggest going back to the 60+ minute rule for 5-minute caches, since switching to another thread isn't the same as leaving this one.
I opened #19005 for the same setting before finding this one, and closed it in favor of this PR.
|
playcations reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Rant about the feature in hopes this gets approved in some way:
This feature is not something that should opt in. manually requiring a click before pressing enter is also poor design when I can't keypress to turn the toggle off. It is a very poor design choice when there is no way to toggle the action to work in the opposite way in settings. If a user wants large contexts and are working on documentation or a sub section of some part of code that was barely mentioned before now but has become relevant, they should be allowed to have a large context without accidentally pressing enter and having the application force compaction before sending off critiques or other information. The agent will not know wtf the user is now talking about and will then get to spend a few minutes getting itself reoriented with all documents before being able to take next steps.
|
robertnisipeanu and rohitgirdhar reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note Written by gpt-6.1-sol on behalf of Maria
Thanks for documenting the compact-before-send opt-out. This PR adds a persistent setting rather than repairing a defect, and right now we are only taking focused bug fixes from outside contributors. The guide allows focused configuration proposals, but Read this first also explains our limited review capacity and discretion to defer them. Please keep the request in the existing Ideas discussion and obtain maintainer agreement to take on this setting before requesting reconsideration.
|
robertnisipeanu, scmart, playcations, and Towerthousand reacted with thumbs down emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@maria-rcks it actually repairs a defect.
The fact that this feature even exists in the first place is a defect.
There was already a github issue I created that had a lot of traction that your bots closed: #17467
There is also a discussion thread open that is also popular, but no maintainer seems to check them: #17170
I will say again, this needs a HUMAN review. I'm sorry to say, but the bots that keeps replying and closing this, ARE stupid. They do not understand intent or UX. And let me tell you: this is extremely bad UX.
Please, have a real look on this issue as this behavior not only is very annoying, but totally useless. Auto-compacting threads older than 70 minutes on next message still consumes the full context-window as input tokens and not cached tokens. It literally brings ZERO benefits to the table.
You do really need to adjust the system prompts to your bots, as in my opinion, if an issue/discussion has tens of reactions in a few hours, most likely it is really annoying (or wanted by the) users and at least warrants a human eye on it.
|
playcations, buzinas, bramley-jetcharge, and Towerthousand reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
macroscope-review
Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews
size:M
30-99 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|