From 1aea7664439e09e6b581791b22619541efda77f6 Mon Sep 17 00:00:00 2001 From: Adam Perry Date: Sat, 6 Jun 2026 16:36:47 -0700 Subject: [PATCH] codex: fix CI failure on PR #26834 --- codex-rs/core/src/session/tests.rs | 5 ++++- codex-rs/core/tests/common/test_codex.rs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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(), })]) }