From c93bf9a0067b798e1a516bce26e8cf3c20dc4f59 Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Sat, 28 Mar 2026 13:27:44 -0700 Subject: [PATCH] tests: pin Windows apply_patch harness shell --- codex-rs/core/tests/suite/apply_patch_cli.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/codex-rs/core/tests/suite/apply_patch_cli.rs b/codex-rs/core/tests/suite/apply_patch_cli.rs index a8b429c0dd..a2057712ba 100644 --- a/codex-rs/core/tests/suite/apply_patch_cli.rs +++ b/codex-rs/core/tests/suite/apply_patch_cli.rs @@ -49,7 +49,10 @@ pub async fn apply_patch_harness() -> Result { async fn apply_patch_harness_with( configure: impl FnOnce(TestCodexBuilder) -> TestCodexBuilder, ) -> Result { - let builder = configure(test_codex()).with_config(|config| { + // Keep Windows shell-command apply_patch tests on a deterministic outer + // shell so heredoc interception does not depend on runner-local shell + // auto-detection. + let builder = configure(test_codex().with_windows_cmd_shell()).with_config(|config| { config.include_apply_patch_tool = true; }); // Box harness construction so apply_patch_cli tests do not inline the