This commit is contained in:
paisley
2026-03-07 18:36:29 +08:00
parent 9ce6aea026
commit 5b7688e4b1
6 changed files with 438 additions and 360 deletions

View File

@@ -20,17 +20,6 @@ export function warmupManagedPythonReadiness(): void {
});
}
export function isTransientGatewayStartError(error: unknown): boolean {
const errMsg = String(error);
return (
errMsg.includes('WebSocket closed before handshake') ||
errMsg.includes('ECONNREFUSED') ||
errMsg.includes('Gateway process exited before becoming ready') ||
errMsg.includes('Timed out waiting for connect.challenge') ||
errMsg.includes('Connect handshake timeout')
);
}
export async function terminateOwnedGatewayProcess(child: Electron.UtilityProcess): Promise<void> {
let exited = false;