[codex] allow AGENTS.md and skills to authorize delegation (#30274)

Prompt update of MAv2 to include agents.md and skills more explicitly

should mimic: https://github.com/openai/codex/pull/27919
This commit is contained in:
Charles Du
2026-06-26 12:17:26 -07:00
committed by GitHub
parent a938d5f607
commit 79a8ffdbf7
6 changed files with 11 additions and 8 deletions
@@ -1817,7 +1817,9 @@ async fn turn_start_ignores_deprecated_multi_agent_mode() -> Result<()> {
.single_request()
.message_input_texts("developer");
assert!(developer_texts.iter().any(|text| {
text.contains("Do not spawn sub-agents unless the user explicitly asks for sub-agents")
text.contains(
"Do not spawn sub-agents unless the user or applicable AGENTS.md/skill instructions explicitly ask for sub-agents",
)
}));
assert!(
!developer_texts
@@ -1898,8 +1900,9 @@ async fn thread_start_ignores_deprecated_multi_agent_mode() -> Result<()> {
.message_input_texts("developer");
assert!(developer_texts.iter().any(|text| {
text.contains(MULTI_AGENT_MODE_OPEN_TAG)
&& text
.contains("Do not spawn sub-agents unless the user explicitly asks for sub-agents")
&& text.contains(
"Do not spawn sub-agents unless the user or applicable AGENTS.md/skill instructions explicitly ask for sub-agents",
)
}));
assert!(
!developer_texts