Skip to content

Gate multi-agent v2 tools independently of collab#20246

Open
jif-oai wants to merge 1 commit intomainfrom
jif/gate-ma
Open

Gate multi-agent v2 tools independently of collab#20246
jif-oai wants to merge 1 commit intomainfrom
jif/gate-ma

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented Apr 29, 2026

Why

multi_agents_v2 is meant to be independently gated from the older collab feature. The tool registry still treated the collaboration-style agent tools as collab-only, so enabling multi_agents_v2 without collab omitted the v2 agent tools. Review and guardian sub-sessions also need to keep agent spawning disabled even when the outer session has multi_agents_v2 enabled.

What changed

  • Include the collab-backed agent tools when either multi_agents_v2 or collab is enabled.
  • Explicitly disable multi_agents_v2 for review and guardian review sub-sessions, matching the existing spawn_csv and collab restrictions.
  • Add a registry test that enables multi_agents_v2, disables collab, and verifies the v2 agent tools are present while legacy send_input and resume_agent remain hidden.

Testing

  • Added test_build_specs_multi_agent_v2_does_not_require_collab_feature.

@jif-oai jif-oai requested a review from a team as a code owner April 29, 2026 18:50
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented Apr 29, 2026

@codex review

@jif-oai jif-oai changed the title chore: do not gate multi_agents_v2 behind multi_agents Gate multi-agent v2 tools independently of collab Apr 29, 2026
@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Swish!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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