mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 03:04:21 +01:00
Fix bash tool stream handling by ensuring consistent stdout/stderr pipe configuration
🤖 Generated with opencode Co-Authored-By: opencode <noreply@opencode.ai>
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user