Skip to content

Fix cross-platform browser open, port detection, and Windows planning…#17

Closed
richardliebrecht wants to merge 1 commit intorwliebs:mainfrom
richardliebrecht:fix/cross-platform-browser-and-planning
Closed

Fix cross-platform browser open, port detection, and Windows planning…#17
richardliebrecht wants to merge 1 commit intorwliebs:mainfrom
richardliebrecht:fix/cross-platform-browser-and-planning

Conversation

@richardliebrecht
Copy link
Copy Markdown

… service

  • Replace open npm package with self-contained cross-platform browser open using execSync fallback chains (rundll32/start/explorer on Windows, open/osascript on macOS, xdg-open + 6 fallbacks on Linux)
  • Replace Unix-only lsof port detection with Node.js net.createServer probe
  • Replace bash-only dev server spawn with shell: true cross-platform spawn
  • Auto-detect git-bash on Windows and set CLAUDE_CODE_GIT_BASH_PATH in process.env so Claude Code CLI works via both direct spawn and Agent SDK
  • Always pass env to Agent SDK query() so git-bash path propagates
  • Reject dummy API keys (e.g. "test") in credential resolution so the system correctly falls through to CLI auth

… service

- Replace `open` npm package with self-contained cross-platform browser open
  using execSync fallback chains (rundll32/start/explorer on Windows,
  open/osascript on macOS, xdg-open + 6 fallbacks on Linux)
- Replace Unix-only `lsof` port detection with Node.js net.createServer probe
- Replace bash-only dev server spawn with shell: true cross-platform spawn
- Auto-detect git-bash on Windows and set CLAUDE_CODE_GIT_BASH_PATH in
  process.env so Claude Code CLI works via both direct spawn and Agent SDK
- Always pass env to Agent SDK query() so git-bash path propagates
- Reject dummy API keys (e.g. "test") in credential resolution so the system
  correctly falls through to CLI auth

Co-Authored-By: claude-flow <ruv@ruv.net>
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 30, 2026

@richardliebrecht is attempting to deploy a commit to the richardliebrecht-gmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@rwliebs rwliebs closed this Apr 8, 2026
@rwliebs
Copy link
Copy Markdown
Owner

rwliebs commented Apr 8, 2026

Took a different approach to fixing the same windows setup/browser opening issue

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