From fe9a3949eaed797dd20f22311e57a5bfcf99427e Mon Sep 17 00:00:00 2001 From: David Zbarsky Date: Tue, 20 Jan 2026 14:39:14 -0500 Subject: [PATCH] Fix a pwsh issue --- .../tests/suite/codex_message_processor_flow.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/codex-rs/app-server/tests/suite/codex_message_processor_flow.rs b/codex-rs/app-server/tests/suite/codex_message_processor_flow.rs index 456206af89..5c554c6840 100644 --- a/codex-rs/app-server/tests/suite/codex_message_processor_flow.rs +++ b/codex-rs/app-server/tests/suite/codex_message_processor_flow.rs @@ -21,6 +21,7 @@ use codex_app_server_protocol::SendUserMessageResponse; use codex_app_server_protocol::SendUserTurnParams; use codex_app_server_protocol::SendUserTurnResponse; use codex_app_server_protocol::ServerRequest; +use codex_core::parse_command::parse_command; use codex_core::protocol::AskForApproval; use codex_core::protocol::SandboxPolicy; use codex_core::protocol_config_types::ReasoningSummary; @@ -262,16 +263,17 @@ async fn test_send_user_turn_changes_approval_policy_behavior() -> Result<()> { panic!("expected ExecCommandApproval request, got: {request:?}"); }; + let command = format_with_current_shell("python3 -c 'print(42)'"); + let parsed_cmd = parse_command(&command); + assert_eq!( ExecCommandApprovalParams { conversation_id, call_id: "call1".to_string(), - command: format_with_current_shell("python3 -c 'print(42)'"), + command, cwd: working_directory.clone(), reason: None, - parsed_cmd: vec![ParsedCommand::Unknown { - cmd: "python3 -c 'print(42)'".to_string() - }], + parsed_cmd, }, params );