From 49b36937adf3783ba48eded70b8d8b775e3f7db4 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 19 Dec 2024 15:45:31 -0800 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 8d64ecbad..fab6f3c68 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1569,6 +1569,15 @@ if (res) { taskId = null; + + const responseMessage = history.messages[history.currentId]; + responseMessage.done = true; + + history.messages[history.currentId] = responseMessage; + + if (autoScroll) { + scrollToBottom(); + } } } };