diff --git a/codex-rs/core/src/session/tests.rs b/codex-rs/core/src/session/tests.rs index eae196976c..40abd4ed6f 100644 --- a/codex-rs/core/src/session/tests.rs +++ b/codex-rs/core/src/session/tests.rs @@ -5174,7 +5174,10 @@ impl GlobalInstructionsContributor for CountingGlobalInstructionsContributor { fn contribute(&self) -> GlobalInstructionsFuture<'_> { self.calls.fetch_add(1, Ordering::SeqCst); Box::pin(std::future::ready(Ok(GlobalInstructions { - instructions: vec![GlobalInstruction::new("refreshed instructions", None)], + instructions: vec![GlobalInstruction::new( + "refreshed instructions", + /*source*/ None, + )], warnings: Vec::new(), }))) } diff --git a/codex-rs/core/tests/common/test_codex.rs b/codex-rs/core/tests/common/test_codex.rs index ea3b3b69c7..c609325055 100644 --- a/codex-rs/core/tests/common/test_codex.rs +++ b/codex-rs/core/tests/common/test_codex.rs @@ -246,7 +246,7 @@ impl TestGlobalInstructionsContributor { pub fn static_instructions(contents: impl Into) -> Self { Self::new(vec![Ok(GlobalInstructions { - instructions: vec![GlobalInstruction::new(contents, None)], + instructions: vec![GlobalInstruction::new(contents, /*source*/ None)], warnings: Vec::new(), })]) }