Garry's Opinionated OpenClaw/Hermes Agent Brain
Upgrade to v0.60.468.0: GBrain now needs Bun 1.4.4 or newer
On Bun 1.4.0 to 1.4.2 a postgres.js connection over TLS keeps every chunk it
receives, so a full sync or conversion pass against a TLS Postgres or
connection pooler grows by about the bytes it reads until a memory guard
kills it. Bun 1.4.3 fixed that, and Bun 1.4.4 also carries the Brotli fix for
CVE-2026-111497. This release makes Bun 1.4.4 the minimum. On Bun 1.4.0 to
1.4.3 every gbrain command, including serve, jobs work, hooks and
autopilot, stops at startup with:
GBrain requires Bun 1.4.4 or newer (found Bun 1.4.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.4 and need nothing. Code that imports gbrain as a
library runs on its host's Bun with no startup check, but its guarded outbound
HTTP calls (URL checks, remote images, HTTP integrations) throw
UNSUPPORTED_RUNTIME on a Bun below 1.4.4, so upgrade that host's Bun before
upgrading gbrain. 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.4 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.4 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. A cloud sandbox set up from an oldergbrain bootstrap cloud-setup-scriptmay keep a Bun 1.4.0 to 1.4.3 (that script accepted any Bun 1.4.0 or newer): paste the current script (gbrain bootstrap cloud-setup-script) into the environment's setup script again. An in-agent install (Grok Bot, Muse) upgrades with a freshly fetched helper: abin/gbrain-setupwritten before v0.60.379.0 stages a Bun below 1.4.4 (1.4.3 or older), and setup then stops withruntime_below_floorwithout changing the install. Its message ends with the exact command to run: it fetches the currentsetup-in-agent.shand reruns it with the install's--root,--harnessand flags. Before an--upgrade, make the verified backupdocs/guides/in-agent-setup.mddescribes.Verify.
gbrain doctorbun_runtimereportsBun 1.4.x (minimum 1.4.4). Ifupgrade_errorsstill points at a post-upgrade failure from the old runtime, rungbrain apply-migrations --yes --no-autopilot-installonce and re-rungbrain doctor.