From c031b53cb14acf28167faca28471f5df78eeb5a7 Mon Sep 17 00:00:00 2001 From: Algorithm5838 <108630393+Algorithm5838@users.noreply.github.com> Date: Sun, 10 May 2026 12:23:38 +0300 Subject: [PATCH] fix: preserve chat controls on chat remount --- src/lib/components/chat/Chat.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 751c49bed9..ff0ad61631 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -2820,7 +2820,7 @@ }; const saveControls = async () => { - if (!$chatId || $temporaryChatEnabled) return; + if (loading || !$chatId || $temporaryChatEnabled) return; await updateChatById(localStorage.token, $chatId, { params, files: chatFiles }).catch((err) => console.error('[controls autosave]', err) );