Compare commits

...

5 Commits

Author SHA1 Message Date
Sayan Sisodiya
e68e8f41a7 tests: keep only windows command fix for compact remote 2026-02-02 23:15:38 -08:00
Sayan Sisodiya
0e844dd88e tests: use safe fast windows command in compact remote test 2026-02-02 22:18:46 -08:00
Sayan Sisodiya
c065132038 tests: harden remote compact test on windows 2026-02-02 22:00:48 -08:00
Sayan Sisodiya
b68867e379 tests: harden compact_remote trim test timing on windows 2026-02-02 21:42:38 -08:00
Sayan Sisodiya
af050804d3 tests: make compact_remote trim command windows-compatible 2026-02-02 20:59:31 -08:00

View File

@@ -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) {
format!("echo {}", "x".repeat(7_000))
} else {
"yes x | head -n 3000".to_string()
};
let harness = TestCodexHarness::with_builder(
test_codex()
@@ -256,7 +260,7 @@ async fn remote_compact_trims_function_call_history_to_fit_context_window() -> R
responses::ev_completed("retained-final-response"),
]),
sse(vec![
responses::ev_shell_command_call(trimmed_call_id, trimmed_command),
responses::ev_shell_command_call(trimmed_call_id, &trimmed_command),
responses::ev_completed("trimmed-call-response"),
]),
sse(vec![responses::ev_completed("trimmed-final-response")]),