Skip to content

The open source coding agent.

TypeScript

fix: don't truncate task tool output

adamdottv7398b4ce70d4
diff --git a/internal/tui/components/chat/message.go b/internal/tui/components/chat/message.go
index 5163ec73568..ed9906b6fcd 100644
--- a/internal/tui/components/chat/message.go
+++ b/internal/tui/components/chat/message.go
@@ -429,7 +429,7 @@ func renderToolResponse(toolCall message.ToolCall, response message.ToolResult,
switch toolCall.Name {
case agent.AgentToolName:
return styles.ForceReplaceBackgroundWithLipgloss(
- toMarkdown(resultContent, false, width),
+ toMarkdown(response.Content, false, width),
t.Background(),
)
case tools.BashToolName: