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
This commit is contained in:
Classic298 authored and GitHub committed 2026-11-17 23:33:27 +09:00
1 parent 10be890bce
commit dcde707f0f
2 files changed
+3

No files matched your search

+1
View File
@@ -6488,6 +6488,7 @@
{selectedTerminalId}
{terminalSkills}
chatId={$chatId}
{onTemporaryChange}
bind:terminalContext
callActive={!!(bridge?.connected || bridge?.connecting)}
callEnabled={!isShared}
@@ -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}