From b833fc33cb3a4978eeef7e167094877b9cdc7500 Mon Sep 17 00:00:00 2001 From: webadderall <131426131+webadderall@users.noreply.github.com> Date: Mon, 30 Mar 2026 22:55:53 +1100 Subject: [PATCH] fix(recording): wrap recovery mux in try/catch to prevent video loss on audio failure --- electron/ipc/handlers.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/electron/ipc/handlers.ts b/electron/ipc/handlers.ts index 9957465c..dc87872a 100644 --- a/electron/ipc/handlers.ts +++ b/electron/ipc/handlers.ts @@ -2666,7 +2666,11 @@ async function recoverNativeMacCaptureOutput() { try { if (systemAudioPath || microphonePath) { - await muxNativeMacRecordingWithAudio(candidatePath, systemAudioPath, microphonePath) + try { + await muxNativeMacRecordingWithAudio(candidatePath, systemAudioPath, microphonePath) + } catch (muxError) { + console.warn('Failed to mux audio during recovery:', muxError) + } } return await finalizeStoredVideo(candidatePath)