From e65717d9aee24046cc926109c8cc51993ce96a2f Mon Sep 17 00:00:00 2001 From: PunkDevRobot Date: Mon, 31 Aug 2026 04:47:02 +0200 Subject: [PATCH] fix(pi-extension): run script/executable PLANNOTATOR_BROWSER paths directly on macOS open -a treats the value as an app bundle and fails with LaunchServices -10811 for script paths, with the error swallowed by the detached spawn. Mirror the binary's openBrowser branch: a value containing '/' that does not end with '.app' is executed directly with the URL as its argument. Fixes #1391 --- apps/pi-extension/server/network.test.ts | 36 ++++++++++++++++++++++++ apps/pi-extension/server/network.ts | 13 +++++++-- 2 files changed, 47 insertions(+), 2 deletions(-) diff --git a/apps/pi-extension/server/network.test.ts b/apps/pi-extension/server/network.test.ts index 8c8182802..1efc34ebe 100644 --- a/apps/pi-extension/server/network.test.ts +++ b/apps/pi-extension/server/network.test.ts @@ -285,6 +285,42 @@ describe("pi browser no-op sentinels", () => { }); }); +describe("pi PLANNOTATOR_BROWSER script path", () => { + // #1391: on darwin, `open -a