Skip to content

Allow agent roles on full-history forks - #37252

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/cd4f35e31d75f56289760f245bff38dd0233abe6
Aug 6, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/cd4f35e31d75f56289760f245bff38dd0233abe6

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 6, 2026 •

Copy link
Copy Markdown

Allow agent roles on full-history forks

Why

Multi-agent v2 rejected agent_type when fork_turns was all, forcing callers to choose between a configured role and the parent's full conversation context.

What changed

  • Apply an explicitly selected role to full-history forks, including its model and developer instructions.
  • Preserve the parent's developer instructions when the selected role does not define its own.
  • Keep the inherited conversation history and model-switch context intact.
  • Update the spawn_agent schema to clarify that roles apply independently of history inheritance.

Testing

  • Cover full-history role overrides and developer-instruction precedence in multi-agent v2 tests.

## Why

Multi-agent v2 rejected `agent_type` when `fork_turns` was `all`, forcing callers to choose between a configured role and the parent's full conversation context.

## What changed

- Apply an explicitly selected role to full-history forks, including its model and developer instructions.
- Preserve the parent's developer instructions when the selected role does not define its own.
- Keep the inherited conversation history and model-switch context intact.
- Update the `spawn_agent` schema to clarify that roles apply independently of history inheritance.

## Testing

- Cover full-history role overrides and developer-instruction precedence in multi-agent v2 tests.

GitOrigin-RevId: cd4f35e31d75f56289760f245bff38dd0233abe6
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/cd4f35e31d75f56289760f245bff38dd0233abe6 branch from d9a1ee6 to 82b17bc Compare August 6, 2026 10:28
@copyberry
copyberry Bot merged commit 82b17bc into main Aug 6, 2026
30 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/cd4f35e31d75f56289760f245bff38dd0233abe6 branch August 6, 2026 10:29
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 6, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 82b17bc7 Deployed Aug 6, 2026 by kakabanga via Generate label suggestions #36398
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.

5 participants