Skip to content

feat: drop spawned-agent context instructions#19127

Merged
jif-oai merged 1 commit intomainfrom
jif/drop-sub-agent-instructions
Apr 23, 2026
Merged

feat: drop spawned-agent context instructions#19127
jif-oai merged 1 commit intomainfrom
jif/drop-sub-agent-instructions

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

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

Why

MultiAgentV2 children should not receive an extra model-visible developer fragment just because they were spawned. The parent/configured developer instructions should carry through normally, but the dedicated <spawned_agent_context> block is no longer desired.

What changed

  • Removed the SpawnAgentInstructions context fragment and its <spawned_agent_context> wrapper.
  • Stopped appending spawned-agent instructions in codex-rs/core/src/tools/handlers/multi_agents_v2/spawn.rs.
  • Updated subagent notification coverage to assert inherited parent developer instructions without expecting the spawned-agent wrapper.

Verification

  • cargo test -p codex-core --test all spawned_multi_agent_v2_child_inherits_parent_developer_context -- --nocapture
  • cargo test -p codex-core --test all skills_toggle_skips_instructions_for_parent_and_spawned_child -- --nocapture
  • cargo test -p codex-core --test all subagent_notifications -- --nocapture

@jif-oai jif-oai requested a review from a team as a code owner April 23, 2026 10:22
@jif-oai jif-oai changed the title feat: drop sub-agents instructions feat: drop spawn sub-agents instructions Apr 23, 2026
@jif-oai jif-oai changed the title feat: drop spawn sub-agents instructions Drop spawned-agent context instructions Apr 23, 2026
@jif-oai jif-oai changed the title Drop spawned-agent context instructions feat: drop spawned-agent context instructions Apr 23, 2026
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented Apr 23, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Bravo.

ℹ️ 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".

@jif-oai jif-oai merged commit a2f868c into main Apr 23, 2026
25 checks passed
@jif-oai jif-oai deleted the jif/drop-sub-agent-instructions branch April 23, 2026 16:54
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 23, 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.

2 participants