@@ -119,8 +119,9 @@ Use `openai/gpt-*` model refs for Codex-backed OpenAI agent turns. Prefer
|
119 | 119 | `openai-codex:*` auth profiles and `auth.order.openai-codex` remain valid, but |
120 | 120 | do not write new `openai-codex/gpt-*` model refs. |
121 | 121 | |
122 | | -Do not set `compaction.model` or `compaction.provider` on Codex-backed agents. |
123 | | -Codex owns compaction through its native app-server thread state, so OpenClaw |
| 122 | +Do not set `compaction.model` or `compaction.provider` on Codex-backed agents |
| 123 | +unless a selected context engine owns compaction. Without an owning context |
| 124 | +engine, Codex compacts through its native app-server thread state, so OpenClaw |
124 | 125 | ignores those local summarizer overrides at runtime and `openclaw doctor --fix` |
125 | 126 | removes them when the agent uses Codex. |
126 | 127 | |
@@ -131,6 +132,12 @@ Lossless remains supported as a context engine. Configure it through
|
131 | 132 | `compaction.provider: "lossless-claw"` shape to the Lossless context-engine slot |
132 | 133 | when Codex is the active runtime. |
133 | 134 | |
| 135 | +When the active context engine reports `ownsCompaction: true`, `/compact` runs |
| 136 | +that engine's compaction lifecycle and invalidates the bound Codex app-server |
| 137 | +thread. The next Codex turn starts a fresh backend thread and rehydrates it from |
| 138 | +the context engine instead of layering Codex native compaction on top of the |
| 139 | +engine-owned semantic summary. |
| 140 | + |
134 | 141 | ```json5 |
135 | 142 | { |
136 | 143 | auth: { |
@@ -625,8 +632,10 @@ The Codex harness changes the low-level embedded agent executor only.
|
625 | 632 | - Codex-native shell, patch, MCP, and native app tools are owned by Codex. |
626 | 633 | OpenClaw can observe or block selected native events through the supported |
627 | 634 | relay, but it does not rewrite native tool arguments. |
628 | | -- Codex owns native compaction. OpenClaw keeps a transcript mirror for channel |
629 | | - history, search, `/new`, `/reset`, and future model or harness switching. |
| 635 | +- Codex owns native compaction unless the active OpenClaw context engine |
| 636 | + declares `ownsCompaction: true`. OpenClaw keeps a transcript mirror for |
| 637 | + channel history, search, `/new`, `/reset`, and future model or harness |
| 638 | + switching. |
630 | 639 | - Media generation, media understanding, TTS, approvals, and messaging-tool |
631 | 640 | output continue through the matching OpenClaw provider/model settings. |
632 | 641 | - `tool_result_persist` applies to OpenClaw-owned transcript tool results, not |
|