Garry's Opinionated OpenClaw/Hermes Agent Brain
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.
Check the runtime. Run
bun --versionon 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 compiledgbrainbinary, skip to step 4.Upgrade Bun, with the user's agreement.
bun upgrade bun --version # 1.4.0 or newerA Bun installed by a package manager upgrades through it instead (
brew upgrade oven-sh/bun/bun,npm install -g bun). Ifbun --versionstill shows the old version, an olderbuncomes first onPATH; find it withwhich -a bun.Finish the GBrain upgrade. If
gbrain upgraderan on the old Bun, its migrations stopped at the runtime check. Run:gbrain post-upgradeIt is idempotent, so running it when nothing is pending is harmless.
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), agbrain 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.logand~/.gbrain/autopilot.err.Verify.
gbrain doctorbun_runtimereportsBun 1.4.x (minimum 1.4.0). Ifupgrade_errorsstill points at a post-upgrade failure from the old runtime, rungbrain apply-migrations --yes --no-autopilot-installonce and re-rungbrain doctor.