Repository navigation
fix(browser): use open -a only for PLANNOTATOR_BROWSER on macOS - #163
Merged
Merged
Conversation
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]>
Owner
Code reviewNo 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]>
8 tasks
Owner
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.