diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 03af994a68..eb8e5693fa 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1298,7 +1298,8 @@ if (q) { if (($page.url.searchParams.get('submit') ?? 'true') === 'true') { await tick(); - submitHandler(q); + await submitHandler(q); + messageInput?.setText(''); } } }