mirror of
https://github.com/openai/codex.git
synced 2026-12-05 01:00:54 +00:00
## Why Agent roles can override the model or reasoning effort after the initial `spawn_agent` configuration is validated, leaving an unsupported combination unchecked. ## What changed - Validate the final reasoning effort against model metadata whenever a role changes the spawned agent's model settings. - Preserve independently configured subagent defaults when a role does not override them. - Apply the same role validation in both multi-agent spawn implementations. ## Testing Added coverage for independent model and reasoning defaults, instruction-only roles, and rejection of a reasoning effort unsupported by a role-selected model. GitOrigin-RevId: 1885314e9380f778603f067fc04a6225ee963428