Skip to content

Commit c25fc87

Browse files
committed
fix: clear taskIds immediately on response done
1 parent 13447a4 commit c25fc87

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/components/chat/Chat.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,8 +1398,6 @@
13981398
await chats.set(await getChatList(localStorage.token, $currentChatPage));
13991399
}
14001400
}
1401-
1402-
taskIds = null;
14031401
};
14041402
14051403
const chatActionHandler = async (_chatId, actionId, modelId, responseMessageId, event = null) => {
@@ -1741,6 +1739,8 @@
17411739
scrollToBottom();
17421740
}
17431741
1742+
taskIds = null;
1743+
17441744
// Fire-and-forget: run chatCompletedHandler for background work
17451745
// (outlet filters, chat save, title gen, follow-ups, tags)
17461746
// without blocking the user from sending new messages.

0 commit comments

Comments
 (0)