on main help sign in
fix(tui): apply border styling to error messages in selected state
6235248Kujtim Hoxha
internal/tui/components/chat/messages/messages.go+2−2
@@ -188,8 +188,8 @@ func (m *messageCmp) renderAssistantMessage() string {
188 truncated := ansi.Truncate(finishedData.Message, m.textWidth()-2-lipgloss.Width(errTag), "...")
188 truncated := ansi.Truncate(finishedData.Message, m.textWidth()-2-lipgloss.Width(errTag), "...")
189 title := fmt.Sprintf("%s %s", errTag, t.S().Base.Foreground(t.FgHalfMuted).Render(truncated))
189 title := fmt.Sprintf("%s %s", errTag, t.S().Base.Foreground(t.FgHalfMuted).Render(truncated))
190 details := t.S().Base.Foreground(t.FgSubtle).Width(m.textWidth() - 2).Render(finishedData.Details)
190 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)
193 }
193 }
194
194
195 if thinkingContent != "" {
195 if thinkingContent != "" {