From 7fc22c1fcb9bf2ed3e14cb2dc3ae06271ad153ad Mon Sep 17 00:00:00 2001 From: starr-openai Date: Thu, 7 May 2026 18:35:05 -0700 Subject: [PATCH] codex: fix apply_patch harness lint Co-authored-by: Codex --- codex-rs/core/tests/suite/tool_harness.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/codex-rs/core/tests/suite/tool_harness.rs b/codex-rs/core/tests/suite/tool_harness.rs index 5fc6c40577..a31c1355aa 100644 --- a/codex-rs/core/tests/suite/tool_harness.rs +++ b/codex-rs/core/tests/suite/tool_harness.rs @@ -515,7 +515,10 @@ async fn apply_patch_multi_environment_uses_remote_executor() -> anyhow::Result< !function_local_path.exists(), "function-call targeted patch should not write locally" ); - let function_remote_contents = test.fs().read_file(&function_remote_path, None).await?; + let function_remote_contents = test + .fs() + .read_file(&function_remote_path, /*sandbox*/ None) + .await?; assert_eq!( String::from_utf8(function_remote_contents)?, "patched via remote function\n" @@ -571,7 +574,10 @@ async fn apply_patch_multi_environment_uses_remote_executor() -> anyhow::Result< !freeform_local_path.exists(), "freeform targeted patch should not write locally" ); - let freeform_remote_contents = test.fs().read_file(&freeform_remote_path, None).await?; + let freeform_remote_contents = test + .fs() + .read_file(&freeform_remote_path, /*sandbox*/ None) + .await?; assert_eq!( String::from_utf8(freeform_remote_contents)?, "patched via remote freeform\n"