From 6235248b93b4635e294ff7ca123c55e0c3f6e222 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Wed, 30 Jul 2025 12:51:54 +0200 Subject: [PATCH] fix(tui): apply border styling to error messages in selected state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Error messages were not showing the left border indicator when selected/focused, making them inconsistent with other message types in the chat interface. 💖 Generated with Crush Co-Authored-By: Crush --- internal/tui/components/chat/messages/messages.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/tui/components/chat/messages/messages.go b/internal/tui/components/chat/messages/messages.go index cb1ea90cf34a3cd3b206ce6ef019feea9bc240f9..17bb582dcadbea1f314b976bc31a31639f8d9609 100644 --- a/internal/tui/components/chat/messages/messages.go +++ b/internal/tui/components/chat/messages/messages.go @@ -188,8 +188,8 @@ func (m *messageCmp) renderAssistantMessage() string { truncated := ansi.Truncate(finishedData.Message, m.textWidth()-2-lipgloss.Width(errTag), "...") title := fmt.Sprintf("%s %s", errTag, t.S().Base.Foreground(t.FgHalfMuted).Render(truncated)) details := t.S().Base.Foreground(t.FgSubtle).Width(m.textWidth() - 2).Render(finishedData.Details) - // Handle error messages differently - return fmt.Sprintf("%s\n\n%s", title, details) + errorContent := fmt.Sprintf("%s\n\n%s", title, details) + return m.style().Render(errorContent) } if thinkingContent != "" {