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
notifyUser:true, // send brief notices when compaction starts and completes (default: false)
662
663
memoryFlush: {
663
664
enabled:true,
@@ -683,6 +684,7 @@ Periodic heartbeat runs.
683
684
-`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.
684
685
-`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.
685
686
-`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`.
687
+
-`maxActiveTranscriptTokens`: optional Codex app-server native-thread token reuse guard (`number` or strings like `"120k"`). When unset, OpenClaw uses Codex's reported model context window with a 300000-token fallback recovery fuse. Set a positive value to override that fuse, or `0` to disable only this token guard while preserving byte limits and semantic binding invalidation.
686
688
-`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.
687
689
-`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.
| Model or app-server context limit | Codex app-server | Codex accepted a native thread or turn and then rejected, compacted, or failed because the real model request could not fit. |
250
+
| OpenClaw assembly precheck | OpenClaw | OpenClaw's rendered turn prompt, developer instructions, context-engine projection, media, and reserves are too large before the turn is submitted to app-server. |
251
+
| Native-thread reuse rotation | OpenClaw + Codex | OpenClaw has a saved Codex thread binding, but the persisted/native transcript is over the configured warm-thread reuse guard or the binding identity no longer matches. |
252
+
253
+
The native-thread reuse guard is not the model context window. When unset,
254
+
OpenClaw uses Codex's reported model context window, with a 300000-token
255
+
fallback recovery fuse when Codex has not reported one. It is a proactive
256
+
threshold for deciding whether an existing native Codex thread is still a good
257
+
warm resume candidate. Setting `maxActiveTranscriptTokens` to `120k` preserves
258
+
an 86000 token native rollout on models with smaller reported windows, while
259
+
setting it to `50k` rotates a 60000 token binding. Setting the token guard to
260
+
`0` disables only proactive token rotation; byte guards and semantic binding
261
+
checks can still rotate.
262
+
263
+
For context-engine `thread_bootstrap`, the efficient path is a matching
0 commit comments