From 2eb3be33db62faa17f9451c0df5a7a8756d2a93b Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Fri, 13 Nov 2026 15:01:09 +0100 Subject: [PATCH] fix: a new side chat is named "New Chat" instead of its first message (#34368) Since a recent dev change, sending the first message of a new side chat saved it as "New Chat". With automatic title generation off it kept that name on the side chat's tab and in the chat list; with it on, the name only changed once the generated title arrived. A new side chat is named after its first message again, and one whose first message is only a file, with no text, keeps "New Chat" as before. Fixes #34366 --- src/lib/components/chat/Tabs/SideChat.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Tabs/SideChat.svelte b/src/lib/components/chat/Tabs/SideChat.svelte index 53da4c09a9..823aa545a7 100644 --- a/src/lib/components/chat/Tabs/SideChat.svelte +++ b/src/lib/components/chat/Tabs/SideChat.svelte @@ -97,7 +97,9 @@ prompt: draft, files }; - $: title = draft.trim().slice(0, 100) || $i18n.t('New Chat'); + let title = $i18n.t('New Chat'); + // Sending clears the input before the chat is created. + $: if (draft || files.length) title = draft.trim().slice(0, 100) || $i18n.t('New Chat'); const createChat = async (chat: { models: string[];