From a3719d9052daf3307a6b329898b250396b8777d2 Mon Sep 17 00:00:00 2001 From: Joe Gershenson Date: Wed, 15 Apr 2026 00:56:01 -0700 Subject: [PATCH] Use NoProfile in PowerShell exec tests --- codex-rs/core/src/exec_tests.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codex-rs/core/src/exec_tests.rs b/codex-rs/core/src/exec_tests.rs index acc92f5585..0f7dd3eaa8 100644 --- a/codex-rs/core/src/exec_tests.rs +++ b/codex-rs/core/src/exec_tests.rs @@ -252,6 +252,7 @@ async fn exec_full_buffer_capture_ignores_expiration() -> Result<()> { "powershell.exe".to_string(), "-NonInteractive".to_string(), "-NoLogo".to_string(), + "-NoProfile".to_string(), "-Command".to_string(), "Start-Sleep -Milliseconds 50; [Console]::Out.Write('hello')".to_string(), ]; @@ -334,6 +335,7 @@ async fn process_exec_tool_call_preserves_full_buffer_capture_policy() -> Result "powershell.exe".to_string(), "-NonInteractive".to_string(), "-NoLogo".to_string(), + "-NoProfile".to_string(), "-Command".to_string(), format!("Start-Sleep -Milliseconds 50; [Console]::Out.Write('a' * {byte_count})"), ]; @@ -1014,6 +1016,7 @@ fn long_running_command() -> Vec { "powershell.exe".to_string(), "-NonInteractive".to_string(), "-NoLogo".to_string(), + "-NoProfile".to_string(), "-Command".to_string(), "Start-Sleep -Seconds 30".to_string(), ]