Repository navigation
fix(runtime): keep the Bun floor warning off hosts without Bun - #620
Merged
Merged
Conversation
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
|
🎉 This PR is included in version 0.41.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
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, plainpirun — prints on every session: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.tstranslated "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
nullfor a host without Bun andbunFloorWarningreturnsnullfor it;undefinedkeeps its existing meaning and still warns. One early-return, no behavior change on Bun hosts.Verification
a host without Bun is reported as not-Bun, not as an unknown Bunfails on the base head and passes here; the other 11 tests intest/host/runtime.test.tsunchanged.tsc --noEmitandbiome checkclean; merge gate green on push.