From 413ee075fbfe131ccd838469f6b4241b1e4032a0 Mon Sep 17 00:00:00 2001 From: Wang Date: Wed, 26 Aug 2026 09:39:44 +0800 Subject: [PATCH] fix(desktop): stop renderer before quit cleanup Destroy the main window before retiring the local Runtime Host so the renderer cannot send IPC after its handlers are removed. Generated-by: Codex --- apps/desktop/src/main/runtime-host-boot.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/desktop/src/main/runtime-host-boot.ts b/apps/desktop/src/main/runtime-host-boot.ts index 138525a2d5..bee614b763 100644 --- a/apps/desktop/src/main/runtime-host-boot.ts +++ b/apps/desktop/src/main/runtime-host-boot.ts @@ -1558,6 +1558,7 @@ function wireLifecycle(): void { } async function prepareRuntimeHostDesktopQuit(): Promise { + mainWindowController.browserWindow()?.destroy(); const retirement = await runtimeHostManager?.retireOwnedLocalHost( "interrupt_active_work", );