Просмотр исходного кода

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

Aiden Cline 6 месяцев назад
Родитель
Сommit
6581741318
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      packages/tui/internal/components/chat/message.go

+ 4 - 0
packages/tui/internal/components/chat/message.go

@@ -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":