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[];