diff --git a/crates/goose-mcp/src/developer/shell.rs b/crates/goose-mcp/src/developer/shell.rs index 3350091bd9f6..e149013a2a9d 100644 --- a/crates/goose-mcp/src/developer/shell.rs +++ b/crates/goose-mcp/src/developer/shell.rs @@ -122,6 +122,12 @@ pub fn configure_shell_command( .stdin(Stdio::null()) .kill_on_drop(true) .env("GOOSE_TERMINAL", "1") + .env("GIT_EDITOR", "sh -c 'echo \"Interactive Git commands are not supported in this environment.\" >&2; exit 1'") + .env("GIT_SEQUENCE_EDITOR", "sh -c 'echo \"Interactive Git commands are not supported in this environment.\" >&2; exit 1'") + .env("VISUAL", "sh -c 'echo \"Interactive editor not available in this environment.\" >&2; exit 1'") + .env("EDITOR", "sh -c 'echo \"Interactive editor not available in this environment.\" >&2; exit 1'") + .env("GIT_TERMINAL_PROMPT", "0") + .env("GIT_PAGER", "cat") .args(&shell_config.args) .arg(command);