feat: add AGENT=goose environment variable for cross-tool compatibility (#7017)

This commit is contained in:
Sam W
2026-02-10 09:18:50 -08:00
committed by GitHub
parent 7267621ab8
commit 1168d7d9b1
5 changed files with 7 additions and 0 deletions
+2
View File
@@ -233,11 +233,13 @@ pub async fn execute_shell_command(
let mut cmd = Command::new("cmd");
cmd.args(["/C", command]);
cmd.env("GOOSE_TERMINAL", "1");
cmd.env("AGENT", "goose");
cmd
} else {
let mut cmd = Command::new("sh");
cmd.args(["-c", command]);
cmd.env("GOOSE_TERMINAL", "1");
cmd.env("AGENT", "goose");
cmd
};