feat: add AGENT=goose environment variable for cross-tool compatibility (#7017)
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user