on main help sign in
fix(ui): improve thinking message truncation display
8e244e6Ayman Bagabas
internal/ui/chat/assistant.go+1−1
@@ -155,7 +155,7 @@ func (a *AssistantMessageItem) renderThinking(thinking string, width int) string
155 hint := a.sty.Chat.Message.ThinkingTruncationHint.Render(
155 hint := a.sty.Chat.Message.ThinkingTruncationHint.Render(
156 fmt.Sprintf("… (%d lines hidden) [click or space to expand]", totalLines-maxCollapsedThinkingHeight),
156 fmt.Sprintf("… (%d lines hidden) [click or space to expand]", totalLines-maxCollapsedThinkingHeight),
157 )
157 )
158− lines = append([]string{hint}, lines...)
158+ lines = append(lines, "", hint)
159 }
159 }
160
160
161 thinkingStyle := a.sty.Chat.Message.ThinkingBox.Width(width)
161 thinkingStyle := a.sty.Chat.Message.ThinkingBox.Width(width)