From 212bb68a66435dc1803a6d67cb4ea584d3455fb7 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 9 May 2026 05:27:32 +0900 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 8498a9742f..6aa1542449 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -291,7 +291,7 @@ oldSelectedModelIds = structuredClone(selectedModelIds); }; - const resetInput = () => { + const resetInput = async () => { selectedToolIds = []; selectedFilterIds = []; pendingOAuthTools = []; @@ -300,7 +300,7 @@ codeInterpreterEnabled = false; if (selectedModelIds.filter((id) => id).length > 0) { - setDefaults(); + await setDefaults(); } }; @@ -1194,7 +1194,7 @@ autoScroll = true; - resetInput(); + await resetInput(); await chatId.set(''); await chatTitle.set(''); @@ -2217,7 +2217,6 @@ : undefined ].filter(Boolean); - if ($temporaryChatEnabled) { messages = [ ...messages,