From dcde707f0f227900380ff37489ed3490368c33d1 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Tue, 17 Nov 2026 15:33:27 +0100 Subject: [PATCH] fix: Temporary in the / menu does nothing on a new chat (#34609) On a new chat, picking Temporary from the / menu did nothing, so the next message was saved and showed up in the chat list. Picking it now turns the chat temporary, the same as the Temporary Chat button in the header. Fixes #34607 --- src/lib/components/chat/Chat.svelte | 1 + src/lib/components/chat/Placeholder.svelte | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 5cacdf7082..7eec01e380 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -6488,6 +6488,7 @@ {selectedTerminalId} {terminalSkills} chatId={$chatId} + {onTemporaryChange} bind:terminalContext callActive={!!(bridge?.connected || bridge?.connecting)} callEnabled={!isShared} diff --git a/src/lib/components/chat/Placeholder.svelte b/src/lib/components/chat/Placeholder.svelte index bbbf69811d..950eb9ff89 100644 --- a/src/lib/components/chat/Placeholder.svelte +++ b/src/lib/components/chat/Placeholder.svelte @@ -78,6 +78,7 @@ export let onUpload: Function = (e) => {}; export let onUpdate: (data?: { file?: any }) => void = () => {}; export let onSelect = (e) => {}; + export let onTemporaryChange: ((value: boolean) => void) | null = null; export let onChange = (e) => {}; export let onWebSearchToggle: Function = () => {}; export let messageQueue: { id: string; prompt: string; files: any[] }[] = []; @@ -136,6 +137,7 @@ {selectedTerminalId} {terminalSkills} {chatId} + {onTemporaryChange} bind:terminalContext {callActive} {callEnabled}