Fix desktop runtime cold start handling (#1233)

* fix desktop runtime cold start handling

* fix windows desktop python startup env

* Revert "fix windows desktop python startup env"

This reverts commit 3718ba7586ab1a672c7e599ff1e315dfa76d7cda.

* bump desktop release version to 0.6.8
This commit is contained in:
ekko
2026-06-02 10:58:15 +08:00
committed by GitHub
parent 1acfb6486b
commit 7aa483f003
6 changed files with 48 additions and 26 deletions
+5 -5
View File
@@ -22,7 +22,7 @@ import {
} from './paths'
const DEFAULT_PORT = 8748
const DEFAULT_READY_TIMEOUT_MS = 30_000
const DEFAULT_READY_TIMEOUT_MS = 120_000
const AGENT_BRIDGE_STARTED_MARKER = '[bootstrap] agent bridge started'
const AGENT_BRIDGE_FAILED_MARKER = '[bootstrap] agent bridge failed to start'
const execFileAsync = promisify(execFile)
@@ -405,10 +405,10 @@ export async function startWebUiServer(port = DEFAULT_PORT): Promise<string> {
})
const timeoutMs = readyTimeoutMs()
await Promise.all([
waitForReady(port, timeoutMs),
bridgeStartup.wait(timeoutMs),
])
void bridgeStartup.wait(timeoutMs).catch(err => {
console.warn(`[webui] agent bridge was not ready during startup: ${err instanceof Error ? err.message : String(err)}`)
})
await waitForReady(port, timeoutMs)
return getServerUrl(port)
}