fix: respect SHELL on Windows for Git Bash (#178)

This commit is contained in:
Dominik Kundel 2026-04-07 19:56:34 -07:00 committed by GitHub
parent 594fd1e8da
commit f17e7f8486
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ class SpawnedCodexAppServerClient extends AppServerClientBase {
cwd: this.cwd, cwd: this.cwd,
env: this.options.env, env: this.options.env,
stdio: ["pipe", "pipe", "pipe"], stdio: ["pipe", "pipe", "pipe"],
shell: process.platform === "win32", shell: process.platform === "win32" ? (process.env.SHELL || true) : false,
windowsHide: true windowsHide: true
}); });

View File

@ -8,7 +8,7 @@ export function runCommand(command, args = [], options = {}) {
encoding: "utf8", encoding: "utf8",
input: options.input, input: options.input,
stdio: options.stdio ?? "pipe", stdio: options.stdio ?? "pipe",
shell: process.platform === "win32", shell: process.platform === "win32" ? (process.env.SHELL || true) : false,
windowsHide: true windowsHide: true
}); });