Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): old Claude threads compact on send instead of stacking notices #16631

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/16631/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 6 changed files with 104 additions and 8 deletions (loading 3).

x
0 of 6 viewed, 6 left
22 additions and 1 deletionapps/web/src/components/chat/ChatComposer.tsxModified
View file
@@ -1386,6 +1386,8 @@
onCompactContext?: (() => void) | undefined;
compactDisabled: boolean;
compactDisabledReason: string | null;
+ compactBeforeSendTokens: number | null;
+ onSendWithFullHistory: () => void;
return (
@@ -1424,6 +1426,8 @@
onPreviousPendingQuestion={props.onPreviousPendingQuestion}
onInterrupt={props.onInterrupt}
onImplementPlanInNewThread={props.onImplementPlanInNewThread}
+ compactBeforeSendTokens={props.compactBeforeSendTokens}
+ onSendWithFullHistory={props.onSendWithFullHistory}
@@ -1543,6 +1547,10 @@
sendDisabledReason: string | null;
isPreparingWorktree: boolean;
bannerItems: readonly ComposerBannerStackItem[];
+ /** Tokens Enter compacts before sending; null when the next send keeps full history. */
+ resumeCompactionTokens: number | null;
+ /** Runs `send` as a one-off send that keeps full history instead of compacting first. */
+ onSendWithFullHistory: (send: () => void) => void;
/** Picking /usage-limits from the menu is the action itself; the draft keeps nothing of it. */
onUsageLimitsCommand?: (() => void) | undefined;