Skip to content

Commit 6581741

Browse files
authored
fix: include stderr in bash tool output (anomalyco#1511)
1 parent 80d68d0 commit 6581741

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/tui/internal/components/chat/message.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,10 @@ func renderToolDetails(
438438
if stdout != nil {
439439
body += ansi.Strip(fmt.Sprintf("%s", stdout))
440440
}
441+
stderr := metadata["stderr"]
442+
if stderr != nil {
443+
body += ansi.Strip(fmt.Sprintf("%s", stderr))
444+
}
441445
body += "```"
442446
body = util.ToMarkdown(body, width, backgroundColor)
443447
case "webfetch":

0 commit comments

Comments
 (0)