Skip to content

Fix packaged provider bridge runtime startup - #257

Merged
ymichael merged 1 commit into
mainfrom
bb/fix-packaged-provider-bridge-runtime-startup
Jun 22, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fix-packaged-provider-bridge-runtime-startup

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Summary

  • Launch runtime-managed Node bridge providers with an explicit Node runtime instead of relying on node on GUI app PATH
  • Pass ELECTRON_RUN_AS_NODE=1 only to Electron-launched bridge processes
  • Cover Claude Code, Pi, and ACP bridge adapters on current main
  • Strip bridge-only Electron runtime env before launching downstream Claude/ACP agent subprocesses

Repro

  • Confirmed spawn node fails with ENOENT when PATH is empty
  • Confirmed process.execPath still launches successfully with empty PATH
  • Added a regression test that clears PATH and starts a runtime-managed bridge provider

Validation

  • pnpm exec turbo run typecheck --filter=@bb/agent-runtime
  • pnpm exec turbo run test --filter=@bb/agent-runtime --force

Replaces #220.

@ymichael
ymichael merged commit d4b29c2 into main Jun 22, 2026
6 checks passed
@ymichael
ymichael deleted the bb/fix-packaged-provider-bridge-runtime-startup branch June 22, 2026 17:10
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.

1 participant