Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript
2.4 KB
Raw Blame

Upgrade to v0.60.27.0: GBrain now needs Bun 1.4.0 or newer

Older Bun releases had a bug where a finished child process could go unnoticed, so GBrain could wait forever on a helper process that had already exited. Bun 1.4 carries the fix, and this release makes Bun 1.4.0 the minimum. On an older Bun every gbrain command, including serve, jobs work, hooks and autopilot, stops at startup with:

GBrain requires Bun 1.4.0 or newer (found Bun 1.3.x).
Fix: run `bun upgrade`, then restart GBrain. If a `gbrain upgrade` stopped here, finish it with `gbrain post-upgrade`.

gbrain --version still answers on an older Bun. Compiled release binaries carry their own Bun 1.4.2 and need nothing. There is no schema change and no config change.

Upgrading Bun changes the user's runtime for every Bun program on the machine, so ask before running bun upgrade on their behalf.

  1. Check the runtime. Run bun --version on the brain host (and on any machine running a source-installed thin client). If it prints 1.4.0 or newer, or the user runs a compiled gbrain binary, skip to step 4.

  2. Upgrade Bun, with the user's agreement.

    bun upgrade
    bun --version   # 1.4.0 or newer
    

    A Bun installed by a package manager upgrades through it instead (brew upgrade oven-sh/bun/bun, npm install -g bun). If bun --version still shows the old version, an older bun comes first on PATH; find it with which -a bun.

  3. Finish the GBrain upgrade. If gbrain upgrade ran on the old Bun, its migrations stopped at the runtime check. Run:

    gbrain post-upgrade
    

    It is idempotent, so running it when nothing is pending is harmless.

  4. Restart long-running GBrain processes so they pick up the new runtime: a gbrain serve (stdio MCP: restart the agent harness; HTTP: restart the service), a gbrain jobs supervisor, and autopilot. Services managed by launchd, systemd or cron retry on their own and come back once Bun is upgraded; their refusal lines are in ~/.gbrain/autopilot.log and ~/.gbrain/autopilot.err.

  5. Verify.

    gbrain doctor
    

    bun_runtime reports Bun 1.4.x (minimum 1.4.0). If upgrade_errors still points at a post-upgrade failure from the old runtime, run gbrain apply-migrations --yes --no-autopilot-install once and re-run gbrain doctor.