@@ -52,6 +52,7 @@ func NewAssistantMessageItem(sty *styles.Styles, message *message.Message) Messa
5252 return a
5353}
5454
55+// StartAnimation starts the assistant message animation if it should be spinning.
5556func (a *AssistantMessageItem) StartAnimation() tea.Cmd {
5657 if !a.isSpinning() {
5758 return nil
@@ -59,6 +60,7 @@ func (a *AssistantMessageItem) StartAnimation() tea.Cmd {
5960 return a.anim.Start()
6061}
6162
63+// Animate progresses the assistant message animation if it should be spinning.
6264func (a *AssistantMessageItem) Animate(msg anim.StepMsg) tea.Cmd {
6365 if !a.isSpinning() {
6466 return nil
@@ -103,6 +105,7 @@ func (a *AssistantMessageItem) Render(width int) string {
103105 return style.Render(highlightedContent)
104106}
105107
108+// renderMessageContent renders the message content including thinking, main content, and finish reason.
106109func (a *AssistantMessageItem) renderMessageContent(width int) string {
107110 var messageParts []string
108111 thinking := strings.TrimSpace(a.message.ReasoningContent().Thinking)