Repository navigation
Allow agent roles on full-history forks - #37252
Merged
copyberry[bot] merged 1 commit intoAug 6, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## 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
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/cd4f35e31d75f56289760f245bff38dd0233abe6
branch
from
August 6, 2026 10:28
d9a1ee6 to
82b17bc
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/cd4f35e31d75f56289760f245bff38dd0233abe6
branch
August 6, 2026 10:29
halvorsondonna53-alt
temporarily deployed
to
issue-triage
August 6, 2026 10:33 — with
GitHub Actions
Inactive
halvorsondonna53-alt
temporarily deployed
to
issue-triage
August 6, 2026 10:33 — with
GitHub Actions
Inactive
halvorsondonna53-alt
temporarily deployed
to
issue-triage
August 6, 2026 10:33 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow agent roles on full-history forks
Why
Multi-agent v2 rejected
agent_typewhenfork_turnswasall, forcing callers to choose between a configured role and the parent's full conversation context.What changed
spawn_agentschema to clarify that roles apply independently of history inheritance.Testing