fix bash tool wsl

This commit is contained in:
Aiden Cline 2025-11-23 12:29:15 -06:00
parent 25b3846694
commit 27ae341684

View file

@ -70,6 +70,12 @@ export const BashTool = Tool.define("bash", async () => {
return "/bin/zsh"
}
if (process.platform === "win32") {
// Let Bun / Node pick COMSPEC (usually cmd.exe)
// or explicitly:
return process.env.COMSPEC || true
}
const bash = Bun.which("bash")
if (bash) {
return bash