You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address ClawSweeper P1 findings on PR #95675:
- schema.help.ts:1518 - replace hardcoded '15-minute budget' wording with
neutral description that references timeoutSeconds only (no specific
default minutes). Keeps wording correct regardless of which default
the merge target carries.
- agent-runner-memory.ts comment - same neutral wording fix.
- docs/gateway/config-agents.md - add preflight.enabled to the JSON5
example and bullet list under agents.defaults.compaction, matching
the schema/help coverage.
- scripts/repro/issue-95553-preflight-disabled-gate.mts - rewrite the
repro to write a real openclaw.json to a temp dir and load it through
the production loadConfig() so the gate value is parsed from disk,
not cast from an inline literal. Same production path the gateway
startup uses.
Copy file name to clipboardExpand all lines: docs/gateway/config-agents.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -645,6 +645,7 @@ Periodic heartbeat runs.
645
645
model:"openrouter/anthropic/claude-sonnet-4-6", // optional compaction-only model override
646
646
truncateAfterCompaction:true, // rotate to a smaller successor JSONL after compaction
647
647
maxActiveTranscriptBytes:"20mb", // optional preflight local compaction trigger
648
+
preflight: { enabled:false }, // optional gate that skips the pre-turn threshold check
648
649
notifyUser:true, // send brief notices when compaction starts and completes (default: false)
649
650
memoryFlush: {
650
651
enabled:true,
@@ -670,6 +671,7 @@ Periodic heartbeat runs.
670
671
-`postCompactionSections`: optional AGENTS.md H2/H3 section names to re-inject after compaction. Reinjection is disabled when unset or set to `[]`. Explicitly setting `["Session Startup", "Red Lines"]` enables that pair and preserves the legacy `Every Session`/`Safety` fallback. Enable this only when the extra context is worth the risk of duplicating project guidance already captured in the compaction summary.
671
672
-`model`: optional `provider/model-id` override for compaction summarization only. Use this when the main session should keep one model but compaction summaries should run on another; when unset, compaction uses the session's primary model.
672
673
-`maxActiveTranscriptBytes`: optional byte threshold (`number` or strings like `"20mb"`) that triggers normal local compaction before a run when the active JSONL grows past the threshold. Requires `truncateAfterCompaction` so successful compaction can rotate to a smaller successor transcript. Disabled when unset or `0`.
674
+
-`preflight`: optional gate around the pre-turn budget-triggered preflight compaction path. Set `preflight.enabled: false` to skip the pre-turn threshold check entirely and let every turn fall through to overflow recovery (which honors `timeoutSeconds`). Default: `preflight.enabled` is `true` and the existing preflight path runs as before.
673
675
-`notifyUser`: when `true`, sends brief notices to the user when compaction starts and when it completes (for example, "Compacting context..." and "Compaction complete"). Disabled by default to keep compaction silent.
674
676
-`memoryFlush`: silent agentic turn before auto-compaction to store durable memories. Set `model` to an exact provider/model such as `ollama/qwen3:8b` when this housekeeping turn should stay on a local model; the override does not inherit the active session fallback chain. Skipped when workspace is read-only.
"Preflight (budget-triggered) compaction gate. Disable to skip the pre-turn threshold check entirely and let every turn fall through to overflow recovery (which honors `compaction.timeoutSeconds`).",
1517
1517
"agents.defaults.compaction.preflight.enabled":
1518
-
"Enable preflight (budget-triggered) compaction. Default: true. Set false to skip preflight compaction; subsequent turns then rely on overflow recovery, which has its own 15-minute budget and is the only path that honors `compaction.timeoutSeconds` without being capped by the ~60s reply lifecycle.",
1518
+
"Enable preflight (budget-triggered) compaction. Default: true. Set false to skip preflight compaction; subsequent turns then rely on overflow recovery, which honors `compaction.timeoutSeconds` without being capped by the reply lifecycle.",
1519
1519
"agents.defaults.runRetries":
1520
1520
"Outer run loop retry iteration boundaries for the embedded OpenClaw runner to prevent infinite execution loops during failure recovery.",
0 commit comments