Skip to content

Use Bun to update Bun-managed Pi installations - #3121

Merged
SawyerHood merged 1 commit into
mainfrom
slopcop/issue-3119
Sep 5, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
slopcop/issue-3119

Conversation

@bb-slop-cop

@bb-slop-cop bb-slop-cop Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Human comments

What was wrong

Pi maintenance resolved the active executable but ignored its ownership when constructing update commands, so both the displayed action and executable plan always selected npm. For a Pi wrapper delegating to Bun's global binary, npm can update a different prefix and leave the active version unchanged, causing the existing post-install verification to reject the result. The direct reproduction and root-cause report is https://get-bb.github.io/reports/issues/3119.html.

What changed

The Pi provider now probes Bun's global bin directory and recognizes a direct executable, symlink target, or bounded shell wrapper that delegates to Bun's Pi binary. Bun-managed installations use bun add -g; all unrecognized and new-install cases retain the npm fallback. The same selection drives both the advertised maintenance action and the command returned for execution. The change is provider-local and does not alter the host-daemon protocol, public schema, dependencies, generated files, or stored data.

How you verified

  • Added provider-maintenance.bun.test.ts; on unchanged origin/main it failed because the status returned npm install -g, and after the fix it passes with the expected Bun display and execution plans.
  • pnpm exec turbo run typecheck --filter=bb-plugin-provider-pi
  • pnpm exec turbo run test --filter=bb-plugin-provider-pi --force — 22 files and 122 tests passed.
  • pnpm exec oxfmt plugins/provider-pi/src/bridge/provider-maintenance.ts plugins/provider-pi/src/bridge/provider-maintenance.bun.test.ts --check
  • git diff --check
  • EAP codename scan: clean for the working tree, tracked HEAD, added range lines, and range commit messages.
  • Changed-line count: 208 total text lines across 2 files (199 additions, 9 deletions); no binary changes.

Fixes #3119

AGENT GENERATED

@SawyerHood
SawyerHood merged commit ed1615a into main Sep 5, 2026
16 checks passed
@SawyerHood
SawyerHood deleted the slopcop/issue-3119 branch September 5, 2026 16:19
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.

Pi provider update hardcodes npm and fails when Pi is installed via bun

1 participant