Repository navigation
Conversation
brsbl
marked this pull request as ready for review
June 18, 2026 19:13
ymichael
added a commit
that referenced
this pull request
Jun 22, 2026
## 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.
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.
Summary
Fix packaged provider bridge startup so Claude Code and Pi bridges do not depend on
nodebeing visible on the GUI app PATH after sleep, crash, or macOS app restore.Root Cause
Runtime-managed Node bridge providers were created with
process.command: "node". In the packaged desktop app, the host daemon can be restored or cold-started by macOS without the user's shell/NVM PATH, so provider startup could fail withspawn node ENOENTafter the machine died or the app had to reconstruct provider state.Changes
process.execPathto Node bridge adapters by default.ELECTRON_RUN_AS_NODE=1so the packaged app binary can run the bridge scripts as Node.nodeas the direct-adapter default.Validation
pnpm exec turbo run typecheck --filter=@bb/agent-runtimepnpm exec turbo run test --filter=@bb/agent-runtimepnpm exec turbo run typecheck --filter=@bb/host-daemon --force