feat(desktop): surface local server startup failures (#30822)

This commit is contained in:
Luke Parker
2026-06-04 22:45:48 +00:00
committed by GitHub
parent 107180701f
commit b1a7ee5695
10 changed files with 175 additions and 5 deletions
+3 -2
View File
@@ -14,6 +14,7 @@ import type { ServerReadyData, WslConfig } from "../preload/types"
import { checkAppExists, resolveAppPath, wslPath } from "./apps"
import { CHANNEL, UPDATER_ENABLED } from "./constants"
import { registerIpcHandlers, sendDeepLinks, sendMenuCommand } from "./ipc"
import { forwardInitializationFailure } from "./initialization"
import { exportDebugLogs, initCrashReporter, initLogging, startNetLog, write as writeLog } from "./logging"
import { parseMarkdown } from "./markdown"
import { createMenu } from "./menu"
@@ -207,7 +208,7 @@ const main = Effect.gen(function* () {
})
}
const serverReady = Deferred.makeUnsafe<ServerReadyData>()
const serverReady = Deferred.makeUnsafe<ServerReadyData, unknown>()
registerIpcHandlers({
killSidecar: () => killSidecar(),
@@ -314,7 +315,7 @@ const main = Effect.gen(function* () {
)
logger.log("loading task finished")
}).pipe(Effect.forkChild)
}).pipe(forwardInitializationFailure(serverReady), Effect.forkChild)
yield* Fiber.await(loadingTask)