openclaw/docs
Eduardo Piva 4c4825679b fix(agents): make post-compaction guard config valid + observation trim-resilient
Two correctness fixes from code review.

1. Zod schema (src/config/zod-schema.agent-runtime.ts) was strict and
   rejected tools.loopDetection.postCompactionGuard.* keys at validation
   time, making the guard's documented configurability inaccessible at
   gateway startup. Adds ToolLoopPostCompactionGuardSchema with both
   optional fields and wires it into ToolLoopDetectionSchema.

2. The runner observation cursor in pi-embedded-runner/run.ts used
   absolute indices into state.toolCallHistory, but that array is
   trimmed at historySize (default 30). Once the buffer was full, new
   records shifted out from under the cursor and the guard silently
   missed every loop in long-running sessions. Replaces the index
   cursor with a monotonic toolOutcomeSeq on SessionState that
   recordToolCallOutcome bumps on each observable push (unmatched
   branch only, mirroring the prior cursor's effective semantics).
   The runner now reads the most recent (currentSeq - lastSeq) entries
   from the tail of toolCallHistory, which is trim-resilient.

Adds zod parse tests for the new config keys (valid, empty, unknown
key, non-positive, non-integer) and a runner regression test that
seeds toolCallHistory at the trim cap before triggering a
post-compaction loop, asserting the abort still fires.

Refs #77474
2026-05-05 02:15:42 +01:00
..
.generated fix(agents): make post-compaction guard config valid + observation trim-resilient 2026-05-05 02:15:42 +01:00
.i18n docs: add steer command guide 2026-05-03 23:16:37 +01:00
assets
automation fix(agents): mediate async media completions 2026-05-05 01:42:50 +01:00
channels Gate zalouser startup name matching [AI] (#77411) 2026-05-04 22:47:19 +05:30
cli docs(cli): document gateway restart --safe in command options 2026-05-04 17:38:32 -07:00
concepts Add instructions for how to setup slack for QA tests (#77606) 2026-05-04 17:38:16 -07:00
debug
diagnostics feat(brave): add http diagnostics flag 2026-05-02 07:49:12 +01:00
gateway fix: repair stale session route state in doctor 2026-05-05 01:51:23 +01:00
help docs(help,security): cross-reference auth list and trusted-env-proxy 2026-05-04 17:43:09 -07:00
images
install fix: keep gateway shutdown runtime stable across updates 2026-05-04 06:46:45 +01:00
nodes fix: reduce WebUI session latency churn (#76277) thanks @BunsDev 2026-05-02 18:39:06 -05:00
plan Stop heartbeat tool turns from asking for HEARTBEAT_OK (#76338) 2026-05-03 13:46:26 +09:00
platforms refactor(macos): move sessions into context submenu (#75489) 2026-05-01 10:22:29 +03:00
plugins Surface Codex usage-limit reset details in chat replies (#77557) 2026-05-05 09:00:39 +09:00
providers fix(openrouter): keep DeepSeek V4 reasoning effort valid (#77423) 2026-05-04 21:05:05 +00:00
reference fix(openai-codex): match codex replay identity 2026-05-05 00:33:23 +01:00
security docs(help,security): cross-reference auth list and trusted-env-proxy 2026-05-04 17:43:09 -07:00
snippets/plugin-publish docs: show explicit startup activation in plugin examples 2026-04-28 03:13:20 +01:00
start fix: auto-repair gateway watch startup 2026-05-03 17:11:19 +01:00
superpowers/specs docs: complete source-backed docs sweep 2026-05-02 22:37:01 +01:00
tools feat(agents): wire post-compaction loop guard into pi-embedded-runner 2026-05-05 02:15:42 +01:00
web fix(dashboard): guide manual token auth fallback 2026-05-04 18:39:25 -05:00
AGENTS.md
auth-credential-semantics.md [codex] Make external CLI credential discovery explicit (#75209) 2026-04-30 20:32:55 +00:00
brave-search.md docs(brave): redirect legacy search page 2026-05-02 04:42:55 +01:00
ci.md ci(release): split release soak validation 2026-05-04 23:25:06 +01:00
CLAUDE.md
date-time.md
docs.json docs: add steer command guide 2026-05-03 23:16:37 +01:00
index.md
logging.md security(logging): redact payment credential fields (#75230) 2026-05-01 05:45:28 +00:00
nav-tabs-underline.js
network.md
perplexity.md
pi-dev.md docs: full-page readability pass on 5 worst-offender pages 2026-04-26 23:57:10 -07:00
pi.md docs: batch sentence-case headings across high-Title-Case offenders 2026-04-26 23:52:28 -07:00
prose.md
style.css
tts.md
vps.md Docs: add VPS admin hardening note (#54685) 2026-04-29 14:36:33 -07:00
whatsapp-openclaw-ai-zh.jpg
whatsapp-openclaw.jpg