diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 3683298694..0848a19dd5 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -836,8 +836,10 @@ prompt = $page.url.searchParams.get('q') ?? ''; if (prompt) { - await tick(); - submitPrompt(prompt); + if (($page.url.searchParams.get('submit') ?? 'true') === 'true') { + await tick(); + submitPrompt(prompt); + } } }