From f2702e1f0f295c75cf0904bf8ff0fa07cdadc6d5 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 22 Sep 2026 11:37:59 -0400 Subject: [PATCH] fix: fall back to the user's system prompt when the chat's own is cleared (#30333) --- src/lib/components/chat/Chat.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index fd0e1bbac1..95e4e95a49 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -3489,7 +3489,7 @@ // Only temp chats need conversation messages (persisted chats load from DB). let messages: any[] = [ params?.system || $settings.system - ? { role: 'system', content: `${params?.system ?? $settings?.system ?? ''}` } + ? { role: 'system', content: `${params?.system || $settings?.system || ''}` } : undefined ].filter(Boolean);