From 6478a50c7249ba65552c52392e2842757f826fbf Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 18 Jul 2025 18:26:43 +0400 Subject: [PATCH] refac --- 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 6e93052f2b..1f49f6ace8 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1352,6 +1352,12 @@ ); history.messages[message.id] = message; + + await tick(); + if (autoScroll) { + scrollToBottom(); + } + await chatCompletedHandler( chatId, message.model, @@ -1361,6 +1367,8 @@ } console.log(data); + await tick(); + if (autoScroll) { scrollToBottom(); }