From 052a7fb66fe0cbb0baac945a6ca15810eb0a91dc Mon Sep 17 00:00:00 2001 From: NimBold Date: Thu, 27 Aug 2026 20:02:39 +0330 Subject: [PATCH] test(startup): isolate renderer crash path (#37) - Issue #37: replace the main renderer with a minimal startup control for packaged smoke runs.\n- Keep native startup, Aria2, and the extension endpoint unchanged for comparison.\n\nRefs #37. --- src/main.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main.tsx b/src/main.tsx index b060cfe..b6566b5 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -78,12 +78,11 @@ const PropertiesStartupFailure = () => ( const renderMainApp = async () => { if (!rootElement) return; - // Keep the child entrypoint isolated from the main application module. App - // imports the persistent Zustand stores, whose module initialization issues - // main-window-only IPC commands. Loading it in a Properties child creates a - // second persistence owner and can race the bridge handshake. - const RootComponent = (await import('./App')).default; - renderRoot(RootComponent); + // Diagnostic control for Issue #37: keep the native shell and extension + // server alive without loading the application renderer or its startup + // effects. This branch is used only to separate renderer startup from the + // native delayed-crash path. + renderRoot(() =>
); }; const renderPropertiesApp = async () => {