From 1cb829c2f6a0e98f8f2b6ce0ffa86403e697a225 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Thu, 12 Nov 2026 13:30:50 +0100 Subject: [PATCH] fix: no notification when a side chat answer finishes while the window is in the background (#34165) When a side chat answer finished while the browser window was in the background, there was no browser notification, no toast and no sound, while the same answer in the main chat raised all of them. An open side chat now follows the main chat's rule: nothing while the page is in view, and the notification, toast and sound the settings ask for once the window is in the background. Fixes #34025 --- src/routes/+layout.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 3c2b7a7012..6b1c135b6f 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -798,8 +798,10 @@ if ( !event?.internal && - !$openSideChatIds.has(event.chat_id) && - ((event.chat_id !== $chatId && !$temporaryChatEnabled) || isInBackground) + ((event.chat_id !== $chatId && + !$openSideChatIds.has(event.chat_id) && + !$temporaryChatEnabled) || + isInBackground) ) { if (type === 'chat:completion') { const { done, content, output, title } = data;