mirror of
https://github.com/openai/codex.git
synced 2026-09-05 15:18:41 +00:00
## What changed - Retain bounded, non-completion agent messages in remote v2 compaction history so delegated tasks remain available on follow-up turns. - Account for encrypted agent-message content when estimating token usage and place restored initial context before the latest real user or agent message. - Exclude child completion messages from retained follow-up history and strip inherited parent agent messages when forking a child. ## Testing - Extend compaction, history-estimation, and agent-fork tests to cover encrypted delegated tasks, child completions, context ordering, and fork sanitization. GitOrigin-RevId: ba4392e9cfdf4ecbcdc9c7d8581d58a8d2d78260