feat: Add GOOSE_TERMINAL env variable to spawned terminals (#3911)

Signed-off-by: iamrajiv <rajivperfect007@gmail.com>
This commit is contained in:
Rajiv Singh
2025-08-11 11:38:45 +05:30
committed by GitHub
parent e130c3a7fd
commit ab0b078314
5 changed files with 7 additions and 0 deletions
+2
View File
@@ -231,10 +231,12 @@ pub async fn execute_shell_command(
let mut cmd = if cfg!(target_os = "windows") {
let mut cmd = Command::new("cmd");
cmd.args(["/C", command]);
cmd.env("GOOSE_TERMINAL", "1");
cmd
} else {
let mut cmd = Command::new("sh");
cmd.args(["-c", command]);
cmd.env("GOOSE_TERMINAL", "1");
cmd
};