From 2ef55972ff3e408099d071d46e406699d06e212e Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Sun, 22 Feb 2026 21:30:44 +0100 Subject: [PATCH] fix: reset taskIds and messageQueue on new chat (#21731) fix: reset taskIds and messageQueue on new chat Fixes a bug where clicking "New Chat" after sending a message would silently drop subsequent messages. The initNewChat function reset most chat state but did not clear taskIds or messageQueue, causing submitPrompt to queue messages indefinitely instead of sending them. --- src/lib/components/chat/Chat.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index d4418a1d0e..851f31cdf7 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1065,6 +1065,8 @@ chatFiles = []; params = {}; + taskIds = null; + messageQueue = []; if ($page.url.searchParams.get('youtube')) { await uploadWeb(`https://www.youtube.com/watch?v=${$page.url.searchParams.get('youtube')}`);