@@ -237,11 +237,14 @@ func (m *messageCmp) renderThinkingContent() string {
237 lines := strings.Split(reasoningContent.Thinking, "\n")
237 lines := strings.Split(reasoningContent.Thinking, "\n")
238 var content strings.Builder
238 var content strings.Builder
239 lineStyle := t.S().Subtle.Background(t.BgBaseLighter)
239 lineStyle := t.S().Subtle.Background(t.BgBaseLighter)
240− for _, line := range lines {
240+ for i, line := range lines {
241 if line == "" {
241 if line == "" {
244− content.WriteString(lineStyle.Width(m.textWidth()-2).Render(line) + "\n")
244+ content.WriteString(lineStyle.Width(m.textWidth() - 2).Render(line))
245+ if i < len(lines)-1 {
246+ content.WriteString("\n")
246 fullContent := content.String()
249 fullContent := content.String()
247 height := util.Clamp(lipgloss.Height(fullContent), 1, 10)
250 height := util.Clamp(lipgloss.Height(fullContent), 1, 10)