Fix a pwsh issue

This commit is contained in:
David Zbarsky
2026-01-20 14:39:14 -05:00
parent e20cb6c259
commit fe9a3949ea

View File

@@ -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
);