From 3808eace6c2beb1904f0f04fdd443ec544f94acb Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 8 Sep 2026 20:44:23 -0400 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 4 ++-- src/lib/components/chat/FileNav/FileCompare.svelte | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index a012382926..479b084203 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -2209,7 +2209,7 @@ if (query || eventFiles?.length) { if (query) { - messageInput?.setText(query); + await messageInput?.setText(query); } await tick(); submitHandler(query || ''); @@ -2217,7 +2217,7 @@ } } else if ($page.url.searchParams.get('q')) { const q = $page.url.searchParams.get('q') ?? ''; - messageInput?.setText(q); + await messageInput?.setText(q); if (q) { if (($page.url.searchParams.get('submit') ?? 'true') === 'true') { diff --git a/src/lib/components/chat/FileNav/FileCompare.svelte b/src/lib/components/chat/FileNav/FileCompare.svelte index 647c69fc83..09562b52ff 100644 --- a/src/lib/components/chat/FileNav/FileCompare.svelte +++ b/src/lib/components/chat/FileNav/FileCompare.svelte @@ -121,7 +121,7 @@ />