Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): preserve drafts when compacting context #11103

Mergedmaria-rcksmerged 1 commit intomain fromrefs/pull/11103/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 84 additions and 36 deletions.

x
0 of 2 viewed, 2 left
5 additions and 28 deletionsapps/web/src/components/chat/ChatComposer.tsxModified
View file
@@ -1354,6 +1354,7 @@
onPageScrollRelease: () => void;
// Callbacks
+ onCompactContext: () => void;
onSend: (e?: { preventDefault: () => void }, intent?: ComposerSubmissionIntent) => void;
onInterrupt: () => void;
onImplementPlanInNewThread: () => void;
@@ -1460,6 +1461,7 @@
onPageScrollKeyDown,
onPageScrollKeyUp,
onPageScrollRelease,
+ onCompactContext,
onSend,
onInterrupt,
onImplementPlanInNewThread,
@@ -1995,7 +1997,7 @@
* Count of pasted images still being compressed, per thread. Reserved
* against the attachment limit so concurrent pastes can't overshoot it,
- * and checked before sending or compacting so an image cannot move into
+ * and checked before sending so an image cannot move into
* the next draft.
const pendingImageCompressionsRef = useRef<Map<string, number>>(new Map());
@@ -3097,42 +3099,17 @@