The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 19:15 UTC
revert(web): remove automatic compaction before resume (#15771)
maria committed
Oct 4, 2026 at 18:38 UTC
2188bdd8b5c0251f40daebdb66647dd0150cf076
1 file changed
+2
-29
apps/web/src/components/ChatView.tsx
+2
-29
@@ -8874,18 +8874,7 @@ export default function ChatView(props: ChatViewProps) {
8874
);
8875
const messageIdForSend = newMessageId();
8876
const messageCreatedAt = new Date().toISOString();
8877
- // Sending past the resume banner compacts first so the turn does not resend the stale
8878
- // history. The message queues behind the /compact run; steering into it is rejected,
8879
- // and a held queue would strand it.
8880
- const compactBeforeSend =
8881
- resumeCompactionBannerItem !== null &&
8882
- !compactDisabled &&
8883
- !hasHeldQueuedRuns &&
8884
- multipleModelSelections === null &&
8885
- messageTextForSend.toLowerCase() !== "/compact";
8886
- const turnDispatchMode = compactBeforeSend ? "queue" : dispatchMode;
8887
- const shouldQueueBehindActiveRun =
8888
- compactBeforeSend || (phase === "running" && dispatchMode === "queue");
8877
+ const shouldQueueBehindActiveRun = phase === "running" && dispatchMode === "queue";
8878
const outgoingMessageText = formatOutgoingPrompt({
8879
provider: ctxSelectedProvider,
8880
model: ctxSelectedModel,
@@ -9451,22 +9440,6 @@ export default function ChatView(props: ChatViewProps) {
9440
failure = turnAttachmentsResult;
9441
}
9442
9454
- if (failure === null && compactBeforeSend) {
9455
- const compactResult = await startThreadTurn({
9456
- environmentId,
9457
- input: {
9458
- threadId: threadIdForSend,
9459
- message: { messageId: newMessageId(), role: "user", text: "/compact", attachments: [] },
9460
- modelSelection: ctxSelectedModelSelection,
9461
- runtimeMode,
9462
- interactionMode: sendInteractionMode,
9463
- },
9464
- });
9465
- if (compactResult._tag === "Failure") {
9466
- failure = compactResult;
9467
- }
9468
- }
9469
-
9443
let backgroundDraftOpened = false;
9444
let turnStartSucceeded = false;
9445
if (failure === null && turnAttachmentsResult._tag === "Success") {
@@ -9544,7 +9517,7 @@ export default function ChatView(props: ChatViewProps) {
9517
titleSeed: title,
9518
runtimeMode,
9519
interactionMode: sendInteractionMode,
9547
- dispatchMode: turnDispatchMode,
9520
+ dispatchMode,
9521
...(bootstrap ? { bootstrap } : {}),
9522
createdAt: messageCreatedAt,
9523
},