Skip to content

[codex] Pin multi-agent system per thread#25168

Open
aibrahim-oai wants to merge 1 commit into
codex/persist-multi-agent-systemfrom
codex/persist-multi-agent-runtime
Open

[codex] Pin multi-agent system per thread#25168
aibrahim-oai wants to merge 1 commit into
codex/persist-multi-agent-systemfrom
codex/persist-multi-agent-runtime

Conversation

@aibrahim-oai
Copy link
Copy Markdown
Collaborator

@aibrahim-oai aibrahim-oai commented May 29, 2026

Why

A thread and its descendants must keep one multi-agent communication system for their lifetime. Re-resolving from flags during resume, fork, or child spawning can make related agents incompatible.

What changed

  • Resolve the existing rule once: MultiAgentV2 -> v2, otherwise Collab -> v1, otherwise omitted.
  • Store the resolved value in session state and turn context.
  • Restore persisted values on resume and inherit them through forks, children, and model switches.
  • Pin legacy rollouts on first resume while preserving rollout timestamps.
  • Use the resolved turn-context value for tool exposure, hints, notifications, interruption markers, lifecycle behavior, and concurrency gates.
  • Keep existing numeric tuning, depth behavior, and review suppression unchanged.

Verification

Added focused integration coverage for flag fallback, legacy rollout pinning, resume and fork behavior, child inheritance, model switches, v1 and v2 tools, hints, notifications, lifecycle behavior, and v2 concurrency gates. Ran just fmt. Validation is running in online CI.

Stack

  1. Metadata storage: [codex] Persist multi-agent version metadata #25153
  2. This PR: [codex] Pin multi-agent system per thread #25168
  3. ModelInfo overlay: [codex] Add model multi-agent system overlay #25155

Supersedes #25032.

@aibrahim-oai aibrahim-oai requested a review from a team as a code owner May 29, 2026 22:36
@aibrahim-oai aibrahim-oai changed the title codex: pin multi-agent system per thread [codex] Pin multi-agent system per thread May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant