Commit 2c7fc20a authored by AI-甘富林's avatar AI-甘富林

fix(desktop): fix single-instance window restore and focus behavior

parent ac1146f1
This diff is collapsed.
......@@ -144,7 +144,12 @@ export function isWorkspaceShellReady(input: {
return false;
}
return gatewayStatus?.state === "connected";
if (gatewayStatus?.state === "connected") {
return true;
}
const gatewayError = gatewayStatus?.lastError ?? gatewayStatus?.message;
return isTransientLocalGatewayError(gatewayError);
}
function buildSetupSummary(config: AppConfig): Pick<WorkspaceSummary, "chatReady" | "chatLaunchState" | "chatStatusMessage" | "startupPhase" | "startupMessage"> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment