Skip to content

fix(runtime): keep the Bun floor warning off hosts without Bun - #620

Merged
abogartz merged 1 commit into
mainfrom
fix/619-no-bunfloor-on-node
Nov 30, 2026
Merged

abogartz merged 1 commit into
mainfrom
fix/619-no-bunfloor-on-node

Conversation

@ocsi-fixer

@ocsi-fixer ocsi-fixer Bot commented Nov 30, 2026

Copy link
Copy Markdown

Symptom (released 0.41.0, seen from the npm registry, not the checkout)

A naive Pi session on Node 22 — pi install npm:opencode-self-improvement, plain pi run — prints on every session:

[opencode-self-improvement] Bun version unknown is unrecognized (supported minimum 1.4.0); memory features may misbehave.

The session succeeds and memory is on; the warning is a false statement about a runtime that is not there. Closes #619.

Cause

src/runtime/setup.ts translated "no Bun on this host" into the same value as "Bun with an unreadable version" (undefined), and the helper warns on both.

Fix

The caller now passes null for a host without Bun and bunFloorWarning returns null for it; undefined keeps its existing meaning and still warns. One early-return, no behavior change on Bun hosts.

Verification

  • Fail-before: the new pin a host without Bun is reported as not-Bun, not as an unknown Bun fails on the base head and passes here; the other 11 tests in test/host/runtime.test.ts unchanged.
  • tsc --noEmit and biome check clean; merge gate green on push.
  • Registry reproduction command is in the linked issue; the saved naive E2E now asserts the post-release expectation (silent, memory on) and is the acceptance harness for the next release.

Pi loads the plugin on Node, where there is no Bun to have a version.
The call site passed undefined for that case, which the helper reads as
Bun-with-an-unparseable-version, so every Pi session on the released
0.41.0 printed 'Bun version unknown is unrecognized (supported minimum
1.4.0); memory features may misbehave' while memory was in fact on.
Pass null for no-Bun and stay silent on it; undefined keeps warning.
Closes #619
@ocsi-fixer
ocsi-fixer Bot requested a review from abogartz as a code owner November 30, 2026 00:14
@abogartz
abogartz merged commit 6704a87 into main Nov 30, 2026
9 checks passed
@abogartz-opencode-self-improvement

Copy link
Copy Markdown

🎉 This PR is included in version 0.41.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bun floor warning fires on Node (Pi) hosts: false "Bun version unknown" on every session

1 participant