diff options
| author | Dax Raad <[email protected]> | 2025-06-03 14:48:05 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-06-03 14:48:05 -0400 |
| commit | e2397a343d7087299c57b522358251600e77da1d (patch) | |
| tree | 75c3470dc1653cb9a9d6ed43c94e6c18db9a058a | |
| parent | 8e769dcac0c5e3e2342fb842a0202747c49a22a9 (diff) | |
| download | opencode-e2397a343d7087299c57b522358251600e77da1d.tar.gz opencode-e2397a343d7087299c57b522358251600e77da1d.zip | |
Fix bash tool stream handling by ensuring consistent stdout/stderr pipe configuration
🤖 Generated with opencode
Co-Authored-By: opencode <[email protected]>
| -rw-r--r-- | packages/opencode/src/tool/bash.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/opencode/src/tool/bash.ts b/packages/opencode/src/tool/bash.ts index da188f0ef..ca9ebb9b6 100644 --- a/packages/opencode/src/tool/bash.ts +++ b/packages/opencode/src/tool/bash.ts @@ -191,12 +191,12 @@ export const BashTool = Tool.define({ cmd: ["bash", "-c", params.command], maxBuffer: MAX_OUTPUT_LENGTH, timeout: timeout, + stdout: "pipe", + stderr: "pipe", }) await process.exited const stdout = await new Response(process.stdout).text() - const stderr = process.stderr - ? await new Response(process.stderr).text() - : undefined + const stderr = await new Response(process.stderr).text() return { metadata: { |
