From d567d7ccedce9d42fef7caaafc1d25c840bbe63d Mon Sep 17 00:00:00 2001 From: Kelvin Amoaba <97001695+AmoabaKelvin@users.noreply.github.com> Date: Fri, 13 Nov 2026 22:06:19 +0000 Subject: [PATCH] fix(cli): narrow the open status before returning it --- src/cli/runtime/open-local-orca.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/runtime/open-local-orca.ts b/src/cli/runtime/open-local-orca.ts index 4c713ecfb79..05286712547 100644 --- a/src/cli/runtime/open-local-orca.ts +++ b/src/cli/runtime/open-local-orca.ts @@ -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) {