@@ -12,6 +12,7 @@ import (
1212 "github.com/charmbracelet/catwalk/pkg/catwalk"
1313 "github.com/charmbracelet/lipgloss/v2"
1414 "github.com/charmbracelet/x/ansi"
15+ "github.com/charmbracelet/x/exp/ordered"
1516 "github.com/google/uuid"
1617
1718 "github.com/atotto/clipboard"
@@ -271,7 +272,7 @@ func (m *messageCmp) renderThinkingContent() string {
271272 }
272273 }
273274 fullContent := content.String()
274− height := util.Clamp(lipgloss.Height(fullContent), 1, 10)
275+ height := ordered.Clamp(lipgloss.Height(fullContent), 1, 10)
275276 m.thinkingViewport.SetHeight(height)
276277 m.thinkingViewport.SetWidth(m.textWidth())
277278 m.thinkingViewport.SetContent(fullContent)
@@ -344,7 +345,7 @@ func (m *messageCmp) GetSize() (int, int) {
344345
345346// SetSize updates the width of the message component for text wrapping
346347func (m *messageCmp) SetSize(width int, height int) tea.Cmd {
347− m.width = util.Clamp(width, 1, 120)
348+ m.width = ordered.Clamp(width, 1, 120)
348349 m.thinkingViewport.SetWidth(m.width - 4)
349350 return nil
350351}