small fixes

This commit is contained in:
Kujtim Hoxha
2025-04-18 21:24:35 +02:00
parent b7e86f61cd
commit d6ab3ab3e9
10 changed files with 106 additions and 75 deletions
+1
View File
@@ -389,6 +389,7 @@ func renderToolResponse(toolCall message.ToolCall, response message.ToolResult,
errContent := fmt.Sprintf("Error: %s", strings.ReplaceAll(response.Content, "\n", " "))
errContent = ansi.Truncate(errContent, width-1, "...")
return styles.BaseStyle.
Width(width).
Foreground(styles.Error).
Render(errContent)
}