From b7abeb4e24cda379bc3706609054c49d765ded54 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Sat, 7 Nov 2026 09:08:11 -0500 Subject: [PATCH] fix: the file ask box, follow-up suggestions and queued messages no longer send with no model selected (#33838) --- src/lib/components/chat/Chat.svelte | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index fdb8f1e3c6..9b51350e4b 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -517,6 +517,7 @@ let files: any[] = []; let terminalContext: TerminalContext | null = null; const askFile = async (instruction: string, file: FilesystemFile) => { + if (selectedModels.includes('')) throw new Error($i18n.t('Model not selected')); const attachments = [structuredClone(file)]; if (fullWidthTabs) { terminalTabs?.focusMainChat(); @@ -3750,6 +3751,7 @@ inputFiles: any[], bridgeRequest: { userMessageId: string; modelId: string } | null = null ) => { + if (selectedModels.includes('')) throw new Error($i18n.t('Model not selected')); const _files = structuredClone(inputFiles); chatFiles.push( @@ -4820,6 +4822,10 @@ }; const submitMessage = async (parentId, prompt) => { + if (selectedModels.includes('')) { + toast.error($i18n.t('Model not selected')); + return; + } let userPrompt = prompt; let userMessageId = uuidv4();