From 0ffe091088e7e5b7070cdfcb2eda74582ee438ab Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Sun, 8 Nov 2026 02:46:23 +0100 Subject: [PATCH] fix: a saved voice note does not open in a tab (#33902) Saving a voice note wrote the recording and the Markdown note to the Open Terminal, but the note never opened, so people had to find it in the file browser by hand. The saved note now opens in its own tab right after Save. Fixes #33886 --- src/lib/components/chat/ChatTabs/VoiceNote.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/ChatTabs/VoiceNote.svelte b/src/lib/components/chat/ChatTabs/VoiceNote.svelte index a834c7982e..a891c4883c 100644 --- a/src/lib/components/chat/ChatTabs/VoiceNote.svelte +++ b/src/lib/components/chat/ChatTabs/VoiceNote.svelte @@ -243,8 +243,9 @@ ); if (!note?.path) throw new Error(); draft = undefined; - onclose(); + // onsaved reads the target that onclose clears onsaved(note.path); + onclose(); } catch { error = $i18n.t('Could not save the voice note. Retry or download the recording.'); } finally {