mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-11 15:06:07 +00:00
* fix: CLI-backend agent runtimes skip the BOOTSTRAP.md first-run ritual CLI-backend runtimes (claude-cli, gemini-cli) never rendered the "Bootstrap Pending" system-prompt gate the embedded runner produces, so on a fresh workspace with a pending BOOTSTRAP.md the agent greeted the user instead of running the first-run bootstrap ritual. BOOTSTRAP.md reached CLI backends only as passive Project Context, never as a blocking directive, because bootstrapMode was computed only on the embedded path. Promote the embedded runner's bootstrap routing to a shared module (src/agents/bootstrap-routing.ts) so both runtimes share one routing path, then compute bootstrapMode in the CLI prepare step and thread it through buildCliAgentSystemPrompt. The embedded-runner change is import-only. Codex is unaffected: it runs on the embedded runtime and already renders the gate. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix(agents): gate CLI bootstrap on native file access --------- Co-authored-by: kruegerb <william.krueger@gmail.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> Co-authored-by: Vincent Koc <vincentkoc@ieee.org>