diff --git a/internal/tui/components/chat/messages/renderer.go b/internal/tui/components/chat/messages/renderer.go index 51f3094b1df00db9206e75d582cf2b028d14bc6c..e11cffc53392c1683a514130948155e423f222c7 100644 --- a/internal/tui/components/chat/messages/renderer.go +++ b/internal/tui/components/chat/messages/renderer.go @@ -645,6 +645,9 @@ func earlyState(header string, v *toolCallCmp) (string, bool) { func joinHeaderBody(header, body string) string { t := styles.CurrentTheme() + if body == "" { + return header + } body = t.S().Base.PaddingLeft(2).Render(body) return lipgloss.JoinVertical(lipgloss.Left, header, "", body, "") }