mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why Subagents spawned without forked history do not receive their parent's client-defined dynamic tools, preventing them from using those tools for delegated work. ## What changed Add the disabled-by-default `multi_agent_v2_dynamic_tools` feature flag. When enabled, fresh V2 subagents inherit the parent's dynamic tool definitions and persist them in session metadata. ## Testing Add coverage for V1 and V2 feature gating, tool persistence, and a fresh V2 subagent calling an inherited tool and receiving its result without inheriting parent history. Update TUI assertions and a snapshot to reflect blank-line separation and question text in recovered answers. GitOrigin-RevId: a17a16bf5570f54ce922c1521cffb883022354f2