From fca0166488a9318540c02c63b59933d976d84ea9 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Thu, 19 Feb 2026 16:23:28 -0600 Subject: [PATCH] fix(app): black screen on launch with sidecar server --- packages/desktop/src/index.tsx | 35 +++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/packages/desktop/src/index.tsx b/packages/desktop/src/index.tsx index 4e0bb8b20..98af589dd 100644 --- a/packages/desktop/src/index.tsx +++ b/packages/desktop/src/index.tsx @@ -472,12 +472,10 @@ render(() => { } return ( - - {(defaultServer) => ( - - - - )} + + + + ) }} @@ -492,19 +490,34 @@ type ServerReadyData = { url: string; password: string | null } // Gate component that waits for the server to be ready function ServerGate(props: { children: (data: Accessor) => JSX.Element }) { const [serverData] = createResource(() => commands.awaitInitialization(new Channel() as any)) - if (serverData.state === "errored") throw serverData.error return ( - +
+ +
+

Failed to start server

+

+ {String(serverData.error ?? "Unknown error")} +

+
} > - {(data) => props.children(data)} + + +
+
+ } + > + {(data) => props.children(data)} +
) }