From af050804d34844c91ebbccd6569927d7f434e480 Mon Sep 17 00:00:00 2001 From: Sayan Sisodiya Date: Mon, 2 Feb 2026 20:59:31 -0800 Subject: [PATCH] tests: make compact_remote trim command windows-compatible --- codex-rs/core/tests/suite/compact_remote.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/codex-rs/core/tests/suite/compact_remote.rs b/codex-rs/core/tests/suite/compact_remote.rs index 55985c9b7a..b209d5b37f 100644 --- a/codex-rs/core/tests/suite/compact_remote.rs +++ b/codex-rs/core/tests/suite/compact_remote.rs @@ -231,7 +231,11 @@ async fn remote_compact_trims_function_call_history_to_fit_context_window() -> R let retained_call_id = "retained-call"; let trimmed_call_id = "trimmed-call"; let retained_command = "echo retained-shell-output"; - let trimmed_command = "yes x | head -n 3000"; + let trimmed_command = if cfg!(windows) { + "1..3000 | ForEach-Object { 'x' }" + } else { + "yes x | head -n 3000" + }; let harness = TestCodexHarness::with_builder( test_codex()