fix: make bash tool respect $SHELL (#3494)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>pull/4611/head
parent
96a2f5268c
commit
b5d0c56b4c
|
|
@ -183,7 +183,7 @@ export const BashTool = Tool.define("bash", {
|
|||
}
|
||||
|
||||
const proc = spawn(params.command, {
|
||||
shell: true,
|
||||
shell: process.env.SHELL ?? true, // $SHELL if set, otherwise default shell
|
||||
cwd: Instance.directory,
|
||||
env: {
|
||||
...process.env,
|
||||
|
|
|
|||
Loading…
Reference in New Issue