on main help sign in
chore: fix bash output
7c28894Kujtim Hoxha
internal/tui/components/chat/messages/renderer.go+3
@@ -645,6 +645,9 @@ func earlyState(header string, v *toolCallCmp) (string, bool) {
645
645
646func joinHeaderBody(header, body string) string {
646func joinHeaderBody(header, body string) string {
647 t := styles.CurrentTheme()
647 t := styles.CurrentTheme()
648+ if body == "" {
649+ return header
650+ }
648 body = t.S().Base.PaddingLeft(2).Render(body)
651 body = t.S().Base.PaddingLeft(2).Render(body)
649 return lipgloss.JoinVertical(lipgloss.Left, header, "", body, "")
652 return lipgloss.JoinVertical(lipgloss.Left, header, "", body, "")
650}
653}