fix: explain heartbeat model bleed overflows

This commit is contained in:
Peter Steinberger
2026-04-28 04:32:23 +01:00
parent 68561a8c94
commit 5a2e5446a4
4 changed files with 273 additions and 4 deletions

View File

@@ -455,6 +455,12 @@ Heartbeats run full agent turns. Shorter intervals burn more tokens. To reduce c
- Keep `HEARTBEAT.md` small.
- Use `target: "none"` if you only want internal state updates.
## Context overflow after heartbeat
If a heartbeat uses a smaller local model, for example an Ollama model with a 32k window, and the next main-session turn reports context overflow, check whether the previous heartbeat left the session on the heartbeat model. OpenClaw's reset message calls this out when the last runtime model matches configured `heartbeat.model`.
Use `isolatedSession: true` to run heartbeats in a fresh session, combine it with `lightContext: true` for the smallest prompt, or choose a heartbeat model with a context window large enough for the shared session.
## Related
- [Automation & Tasks](/automation) — all automation mechanisms at a glance