fix: include stderr in bash tool output (#1511)

This commit is contained in:
Aiden Cline 2025-08-01 19:20:32 -05:00 committed by GitHub
commit 6581741318
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -438,6 +438,10 @@ func renderToolDetails(
if stdout != nil { if stdout != nil {
body += ansi.Strip(fmt.Sprintf("%s", stdout)) body += ansi.Strip(fmt.Sprintf("%s", stdout))
} }
stderr := metadata["stderr"]
if stderr != nil {
body += ansi.Strip(fmt.Sprintf("%s", stderr))
}
body += "```" body += "```"
body = util.ToMarkdown(body, width, backgroundColor) body = util.ToMarkdown(body, width, backgroundColor)
case "webfetch": case "webfetch":