From 24af96520de2ca8cf28cc2b9d8874f2e7b0b2a77 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 25 Nov 2026 01:45:07 +0100 Subject: [PATCH] fix: Stop button stays after Send now until the page is reloaded (#35027) After Send now on a queued message in a saved chat, the answer to the queued messages could stay empty with the Stop button showing until a reload. It happened when that answer finished before the page had loaded the chat again, so the page missed the end of the answer and then showed the chat as it was before the answer finished. Now the page loads the chat again when an answer it has not shown yet finishes, so the finished answer shows and the Stop button goes away. Fixes #35024 --- src/lib/components/chat/Chat.svelte | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 0ce2ca436e..8864060331 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1956,6 +1956,14 @@ await loadChat(); return; } + // A reply this page has not loaded yet ended. + if ( + type === 'chat:active' && + !event.data.data?.active && + !$temporaryChat && + !history.messages[event.message_id] + ) + await loadChat(); if (type === 'chat:list') { return; }