Skip to content

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

Done

Description

@ocsi-triager

Observed (released 0.41.0, reproduced 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 itself succeeds and memory is enabled — the warning is pure noise, and it is a false statement: there is no Bun on this host.

Cause

src/runtime/setup.ts calls bunFloorWarning(typeof Bun === "undefined" ? undefined : Bun.version). Inside the helper, undefined means "running on Bun with an unparseable version", so a Node host — the flagship path shipped by #612 — is reported as an unrecognized Bun.

Fix

Distinguish "not Bun" from "unknown Bun": pass null when typeof Bun === "undefined" and return null from the helper for it, with a test pinning the Node-host silence (current test/host/runtime.test.ts proves Bun strings only).

Activity

  1. abogartz-opencode-self-improvement commented on Nov 30, 2026

    @abogartz-opencode-self-improvement

    🎉 This issue has been resolved in version 0.41.1 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  2. added a commit that references this issue on Nov 30, 2026
    d26fe2c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions