mirror of
https://github.com/openai/codex.git
synced 2026-09-10 20:26:47 +00:00
## Why Developer messages can contain both inherited agent policy and unrelated context. Full-history forks need to replace the parent policy without dropping the unrelated content that shares its message. ## What changed - Filter fork-specific developer instructions by content item instead of excluding an entire developer message. - Remove inherited multi-agent mode instructions before applying the child agent's current mode. - Preserve unrelated content items and discard developer messages only when filtering leaves them empty. ## Testing Extend agent-control and subagent notification tests to cover compound compacted messages, multi-agent mode instructions, and proactive-to-explicit mode transitions. GitOrigin-RevId: 028834e237d8636c13b17a724574bc8eb09a55ba