From 08f7c920dd9db9ffb7f3c942ba36f56d2cbe58b4 Mon Sep 17 00:00:00 2001 From: Abhinav Vedmala Date: Wed, 20 May 2026 15:43:55 -0700 Subject: [PATCH] Fix subagent hook fixture arg comments --- codex-rs/core/tests/suite/subagent_notifications.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/codex-rs/core/tests/suite/subagent_notifications.rs b/codex-rs/core/tests/suite/subagent_notifications.rs index d043fc7bc4..683f92fb65 100644 --- a/codex-rs/core/tests/suite/subagent_notifications.rs +++ b/codex-rs/core/tests/suite/subagent_notifications.rs @@ -526,7 +526,9 @@ async fn subagent_start_replaces_session_start_and_injects_context() -> Result<( let test = test_codex() .with_pre_build_hook(|home| { - if let Err(error) = write_subagent_lifecycle_hooks(home, &[], "worker") { + if let Err(error) = + write_subagent_lifecycle_hooks(home, /*stop_prompts*/ &[], "worker") + { panic!("failed to write subagent hook fixture: {error}"); } }) @@ -672,9 +674,11 @@ async fn subagent_stop_replaces_stop_and_skips_internal_subagents() -> Result<() let test = test_codex() .with_pre_build_hook(|home| { - if let Err(error) = - write_subagent_lifecycle_hooks(home, &[SUBAGENT_STOP_CONTINUATION], "") - { + if let Err(error) = write_subagent_lifecycle_hooks( + home, + /*stop_prompts*/ &[SUBAGENT_STOP_CONTINUATION], + "", + ) { panic!("failed to write subagent hook fixture: {error}"); } })