Skip to content

Use login-shell PATH for daemon user tools - #2252

Merged
ymichael merged 1 commit into
mainfrom
bb/investigate-missing-pr-card-lookup-thr_quj6use3gt
Aug 21, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/investigate-missing-pr-card-lookup-thr_quj6use3gt

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

What was wrong

The host daemon launched some user-installed tools with its minimal service PATH instead of BB's resolved login-shell PATH. This made workspace GitHub discovery report GitHub CLI is not available when gh was installed in a user path such as ~/.local/bin, even though the same lookup worked interactively. The inconsistency also affected direct workspace Git and editor/launcher CLI discovery. This is separate from #2242, which concerns turn dispatch.

What changed

  • Centralized the daemon policy for subprocesses that should resolve like user shell commands.
  • Passed the resolved shell PATH through PR lookup/actions, workspace Git operations and provisioning, project and branch commands, and Git-ref file reads.
  • Used the resolved shell PATH for local editor/launcher CLI discovery and launch while leaving OS/service utilities on the controlled daemon environment.
  • Added regression coverage for gh, Git commands and pipelines, daemon workspace provisioning/dispatch, and local open-target discovery/launch.
  • No host-daemon wire contract changed, so HOST_DAEMON_PROTOCOL_VERSION was not incremented.

How you verified

  • pnpm exec turbo run test typecheck --filter=@bb/host-daemon --filter=@bb/host-workspace --filter=@bb/local-open-targets --force
  • 560 host-daemon tests passed.
  • 215 host-workspace tests passed.
  • 57 local-open-targets tests passed.
  • All affected package typechecks passed.

Fixes: no linked issue.

AGENT GENERATED: by GPT-5

@ymichael
ymichael merged commit f4ce9be into main Aug 21, 2026
13 checks passed
@ymichael
ymichael deleted the bb/investigate-missing-pr-card-lookup-thr_quj6use3gt branch August 21, 2026 20:04
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