From c30b6065050e6e403406d28f63b2e6fad0516172 Mon Sep 17 00:00:00 2001 From: "2:5030/1559" Date: Wed, 11 Mar 2026 20:17:01 +0300 Subject: [PATCH] fix: avoid word splitting by space for windows shell commands (#7781) (#7810) Signed-off-by: Kirill Frolov --- crates/goose/src/agents/platform_extensions/developer/shell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/goose/src/agents/platform_extensions/developer/shell.rs b/crates/goose/src/agents/platform_extensions/developer/shell.rs index 33efb87b..121dc28c 100644 --- a/crates/goose/src/agents/platform_extensions/developer/shell.rs +++ b/crates/goose/src/agents/platform_extensions/developer/shell.rs @@ -266,7 +266,7 @@ fn build_shell_command(command_line: &str) -> tokio::process::Command { #[cfg(windows)] let mut command = { let mut command = tokio::process::Command::new("cmd"); - command.arg("/C").arg(command_line); + command.arg("/C").raw_arg(command_line); command };