Skip to content

fix(browser): use open -a only for PLANNOTATOR_BROWSER on macOS - #163

Merged
backnotprop merged 2 commits into
backnotprop:mainfrom
rerorero:fix-open
Feb 18, 2026
Merged

backnotprop merged 2 commits into
backnotprop:mainfrom
rerorero:fix-open

Conversation

@rerorero

@rerorero rerorero commented Feb 18, 2026 •

Copy link
Copy Markdown
Contributor

open -a expects a macOS application name (e.g. "Google Chrome"), not a shell command. When BROWSER=open, the previous code invoked open -a open , which exits with Unable to find application named 'open'.

This also breaks VS Code devcontainers, which set BROWSER to a script path (/path/to/helpers/browser.sh) — as seen in VS Code's source. This was the primary motivation behind PR #153, but the implementation incorrectly routed BROWSER through open -a on macOS.

https://github.com/microsoft/vscode/blob/790026d0e1c167f9b09a977ddedcbb0d193e3658/src/vs/server/node/extensionHostConnection.ts#L63

PLANNOTATOR_BROWSER retains its macOS-specific behavior (open -a ). BROWSER is now executed directly as $BROWSER on all platforms.

BROWSER env var follows Unix convention (executable + URL as arg),
so BROWSER=open correctly resolves to `open <url>` instead of
the broken `open -a open <url>`.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@backnotprop

Copy link
Copy Markdown
Owner

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

Same fix as the macOS open -a change: when only BROWSER is set (e.g.
VS Code devcontainer helper script), execute it directly instead of
routing through cmd.exe /c start, which can't run Linux paths.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@backnotprop

Copy link
Copy Markdown
Owner

@rerorero

We're building Plannotator Workspaces, where agent plans, specs, and reviews can be collaborated on and distilled into standards and rules. Your annotations and reviews compound into a golden ruleset planning and review agents can use, and CI/CD can verify against.

Joining the waitlist gets you lifetime free access as an early contributor. https://plannotator.ai/workspaces/. Check the OSS contributor box.

The OSS core isn't changing: same free and open source plugin, always.

Thanks for #163.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants