Skip to content

Validate reasoning effort after applying spawn roles - #33656

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/1885314e9380f778603f067fc04a6225ee963428
Jul 16, 2026
Merged

Validate reasoning effort after applying spawn roles#33656
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/1885314e9380f778603f067fc04a6225ee963428

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 16, 2026

Copy link
Copy Markdown

Validate reasoning effort after applying spawn roles

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.

## 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
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/1885314e9380f778603f067fc04a6225ee963428 branch from afa1d06 to 8a7c854 Compare July 16, 2026 18:17
@copyberry
copyberry Bot merged commit 8a7c854 into main Jul 16, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/1885314e9380f778603f067fc04a6225ee963428 branch July 16, 2026 18:19
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant