Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): compact-before-send is a chip that shows the token count #17127

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

Showing 4 changed files with 76 additions and 78 deletions (loading 2).

x
0 of 4 viewed, 4 left
15 additions and 14 deletionsapps/web/src/components/chat/ChatComposer.tsxModified
View file
@@ -1391,7 +1391,8 @@
compactDisabled: boolean;
compactDisabledReason: string | null;
compactBeforeSendTokens: number | null;
- onSendWithFullHistory: () => void;
+ keepFullHistory: boolean;
+ onToggleKeepFullHistory: () => void;
return (
@@ -1431,7 +1432,8 @@
onInterrupt={props.onInterrupt}
onImplementPlanInNewThread={props.onImplementPlanInNewThread}
compactBeforeSendTokens={props.compactBeforeSendTokens}
- onSendWithFullHistory={props.onSendWithFullHistory}
+ keepFullHistory={props.keepFullHistory}
+ onToggleKeepFullHistory={props.onToggleKeepFullHistory}
@@ -1551,10 +1553,12 @@
sendDisabledReason: string | null;
isPreparingWorktree: boolean;
bannerItems: readonly ComposerBannerStackItem[];
- /** Tokens Enter compacts before sending; null when the next send keeps full history. */
+ /** Tokens a stale session would re-read; null when the thread is not offered compaction. */
resumeCompactionTokens: number | null;
- /** Runs `send` as a one-off send that keeps full history instead of compacting first. */