mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user