From 4826f93287fc10d753e4f2bd1d95302dd379d20a Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Mon, 12 Oct 2026 11:26:28 +0200 Subject: [PATCH] fix: chats started in a voice call keep the title "New Chat" A chat started from a voice call is saved as soon as the first words are transcribed, before the chat model answers. The app then treats it as an existing chat, so it never gets a generated title or tags and stays named "New Chat". Now the first chat model answer in a chat that so far holds only the voice call gets a title and tags, like a chat started by typing. Fixes #32258 --- src/lib/components/chat/Chat.svelte | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 8e179f98bd..30a4d6bd55 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -3980,6 +3980,13 @@ ) => { const responseMessage = _history.messages[responseMessageId]; const userMessage = _history.messages[responseMessage.parentId]; + // A voice call saves the chat before the chat model first answers. + const isVoiceOnlyChat = Object.values(_history.messages).every( + (message) => + message.id === responseMessageId || + (message.meta?.voice && + (message.role === 'user' || message.model === message.meta.voice.model)) + ); const chatMessageFiles = _messages .filter((message) => message.files) @@ -4183,7 +4190,8 @@ (!_chatId || (embedded && (userMessage?.parentId ?? null) === null && - createMessagesList(_history, responseMessageId).length === 2)) + createMessagesList(_history, responseMessageId).length === 2) || + isVoiceOnlyChat) ? { title_generation: $settings?.title?.auto ?? true, tags_generation: $settings?.autoTags ?? true