From 0a1ff4a8fa6f2fc708d4e7ea1714d6b0fcc0b457 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 3 Jun 2025 18:49:42 +0400 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index f3cc95406..05d557f44 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -302,6 +302,10 @@ message.files = data.files; } else if (type === 'chat:message:follow_ups') { message.followUps = data.follow_ups; + + if (autoScroll) { + scrollToBottom(); + } } else if (type === 'chat:title') { chatTitle.set(data); currentChatPage.set(1);