fix(cli): narrow the open status before returning it

This commit is contained in:
Kelvin Amoaba
2026-11-14 00:34:58 +00:00
parent 9ec516fe24
commit d567d7cced
+1 -1
View File
@@ -20,7 +20,7 @@ export async function openLocalOrca(
// Relaunching a running Orca would hand it the foreground, so ask it to show its own window.
const asked =
initial?.result.runtime.reachable === true && (await askToOpenWindow(openWindowInBackground))
if (windowStatus === 'available') {
if (initial && windowStatus === 'available') {
return initial
}
if (!asked) {