Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

Merge pull request #7045 from senamakel/fix-stop-button

Steven Enamakelba1e9e6b4e87
diff --cc app/src/features/conversations/Conversations.tsx
index 064aea4a7f,09bdde2f62..40935633d2
--- a/app/src/features/conversations/Conversations.tsx
+++ b/app/src/features/conversations/Conversations.tsx
@@@ -1209,9 -1169,11 +1227,12 @@@ const Conversations = (
if (!sendingThreadId) return;
pendingSendsRef.current.add(sendingThreadId);
addPendingSendingThread(sendingThreadId);
+ // A new turn starts here: a Stop aimed at the previous one must not reach it.
+ stopRequestedDuringSendRef.current.delete(sendingThreadId);
+ clearStopSettleTimer(sendingThreadId);
const pendingAttachments = attachments.slice();
- const modelOverride = composerModelOverride ?? CHAT_MODEL_HINT;
+ const modelOverride = composerModelOverride ?? undefined;
+ const modelClearBarrier = modelOverride === undefined ? waitForComposerModelClear() : null;
let messageText = buildMessageWithAttachments(trimmed, pendingAttachments);
const userMessage: ThreadMessage = {
id: `msg_${globalThis.crypto.randomUUID()}`,