From b8d39c6abdf3d8ff47b6c0cdb9b0d2fbb62ce1de Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Wed, 17 Dec 2025 16:51:48 +0100 Subject: [PATCH] chore(chat): some more docs missing --- internal/ui/chat/assistant.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/ui/chat/assistant.go b/internal/ui/chat/assistant.go index a6d643d1df37eaf1f98736d0296f8e22d770209f..e4153075459473bca47c17f83ffbcfe81f151909 100644 --- a/internal/ui/chat/assistant.go +++ b/internal/ui/chat/assistant.go @@ -52,6 +52,7 @@ func NewAssistantMessageItem(sty *styles.Styles, message *message.Message) Messa return a } +// StartAnimation starts the assistant message animation if it should be spinning. func (a *AssistantMessageItem) StartAnimation() tea.Cmd { if !a.isSpinning() { return nil @@ -59,6 +60,7 @@ func (a *AssistantMessageItem) StartAnimation() tea.Cmd { return a.anim.Start() } +// Animate progresses the assistant message animation if it should be spinning. func (a *AssistantMessageItem) Animate(msg anim.StepMsg) tea.Cmd { if !a.isSpinning() { return nil @@ -103,6 +105,7 @@ func (a *AssistantMessageItem) Render(width int) string { return style.Render(highlightedContent) } +// renderMessageContent renders the message content including thinking, main content, and finish reason. func (a *AssistantMessageItem) renderMessageContent(width int) string { var messageParts []string thinking := strings.TrimSpace(a.message.ReasoningContent().Thinking)