on main help sign in
fix(tui): apply border styling to error messages in selected state

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 <crush@charm.land>

commit6235248b93b4635e294ff7ca123c55e0c3f6e222 authorKujtim Hoxha <kujtimii.h@gmail.com> dateWed 30 Jul 2025, 12:51 (1 year ago) parentebf3b43
1 file changed+2โˆ’2
internal/tui/components/chat/messages/messages.go+2โˆ’2
internal/tui/components/chat/messages/messages.go+2โˆ’2
@@ -188,8 +188,8 @@ func (m *messageCmp) renderAssistantMessage() string {
188188 truncated := ansi.Truncate(finishedData.Message, m.textWidth()-2-lipgloss.Width(errTag), "...")
189189 title := fmt.Sprintf("%s %s", errTag, t.S().Base.Foreground(t.FgHalfMuted).Render(truncated))
190190 details := t.S().Base.Foreground(t.FgSubtle).Width(m.textWidth() - 2).Render(finishedData.Details)
191โˆ’ // Handle error messages differently
192โˆ’ return fmt.Sprintf("%s\n\n%s", title, details)
191+ errorContent := fmt.Sprintf("%s\n\n%s", title, details)
192+ return m.style().Render(errorContent)
193193 }
194194
195195 if thinkingContent != "" {