Skip to content

Restrict spawned-agent models to the active backend#32751

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/22c12aba67df46e9743a74f019b72a1b8b76b308
Jul 13, 2026
Merged

Restrict spawned-agent models to the active backend#32751
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/22c12aba67df46e9743a74f019b72a1b8b76b308

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 13, 2026

Copy link
Copy Markdown

Restrict spawned-agent models to the active backend

Why

Model overrides for spawn_agent must be compatible with the multi-agent backend used by the current turn.

What changed

  • Carry each model's multi-agent backend metadata into ModelPreset.
  • Filter the advertised spawn_agent model overrides for multi-agent v2 and reject overrides assigned to another backend.
  • Limit error suggestions to picker-visible, backend-compatible models.

Testing

Added coverage for hiding incompatible models from the tool description and rejecting them during spawn validation.

## Why

Model overrides for `spawn_agent` must be compatible with the multi-agent backend used by the current turn.

## What changed

- Carry each model's multi-agent backend metadata into `ModelPreset`.
- Filter the advertised `spawn_agent` model overrides for multi-agent v2 and reject overrides assigned to another backend.
- Limit error suggestions to picker-visible, backend-compatible models.

## Testing

Added coverage for hiding incompatible models from the tool description and rejecting them during spawn validation.

GitOrigin-RevId: 22c12aba67df46e9743a74f019b72a1b8b76b308
@copyberry copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/22c12aba67df46e9743a74f019b72a1b8b76b308 branch from 18c65ae to 92938d8 Compare July 13, 2026 09:53
@copyberry copyberry Bot merged commit 92938d8 into main Jul 13, 2026
14 of 32 checks passed
@copyberry copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/22c12aba67df46e9743a74f019b72a1b8b76b308 branch July 13, 2026 09:54
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 13, 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.