Skip to content
Source
Sign inSign up
pingdotgg/t3code

revert(web): remove automatic compaction before resume #15771

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

Showing 1 changed file with 2 additions and 29 deletions.

x
0 of 1 viewed, 1 left
2 additions and 29 deletionsapps/web/src/components/ChatView.tsxModified
View file
@@ -8874,18 +8874,7 @@
const messageIdForSend = newMessageId();
const messageCreatedAt = new Date().toISOString();
- // Sending past the resume banner compacts first so the turn does not resend the stale
- // history. The message queues behind the /compact run; steering into it is rejected,
- // and a held queue would strand it.
- const compactBeforeSend =
- resumeCompactionBannerItem !== null &&
- !compactDisabled &&
- !hasHeldQueuedRuns &&
- multipleModelSelections === null &&
- messageTextForSend.toLowerCase() !== "/compact";
- const turnDispatchMode = compactBeforeSend ? "queue" : dispatchMode;
- const shouldQueueBehindActiveRun =
- compactBeforeSend || (phase === "running" && dispatchMode === "queue");
+ const shouldQueueBehindActiveRun = phase === "running" && dispatchMode === "queue";
const outgoingMessageText = formatOutgoingPrompt({
provider: ctxSelectedProvider,
model: ctxSelectedModel,
@@ -9451,22 +9440,6 @@
failure = turnAttachmentsResult;
- if (failure === null && compactBeforeSend) {
- const compactResult = await startThreadTurn({
- environmentId,
- input: {
- threadId: threadIdForSend,