feat(codex): run context-engine lifecycle in app-server harness (#70809)

Port the Codex app-server harness onto the context-engine lifecycle, add Codex context projection and compaction integration, and cover bootstrap/history/compaction fallback behavior.

Thanks @jalehman.
This commit is contained in:
Josh Lehman
2026-04-23 21:06:45 -07:00
committed by GitHub
parent ac063568d3
commit 51186d2725
23 changed files with 2242 additions and 272 deletions

View File

@@ -77,6 +77,10 @@ four lifecycle points:
4. **After turn** — called after a run completes. The engine can persist state,
trigger background compaction, or update indexes.
For the bundled non-ACP Codex harness, OpenClaw applies the same lifecycle by
projecting assembled context into Codex developer instructions and the current
turn prompt. Codex still owns its native thread history and native compactor.
### Subagent lifecycle (optional)
OpenClaw calls two optional subagent lifecycle hooks: