diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index b57a9f6ff..83369b735 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -165,6 +165,7 @@ if ($page.url.searchParams.get('q')) { prompt = $page.url.searchParams.get('q') ?? ''; + if (prompt) { await tick(); submitPrompt(prompt); @@ -318,6 +319,7 @@ // Reset chat input textarea prompt = ''; + document.getElementById('chat-textarea').style.height = ''; files = []; // Send prompt