on main help sign in
chore: fix tool spinning
ff3c926Kujtim Hoxha
internal/tui/components/chat/messages/tool.go+1−1
@@ -297,7 +297,7 @@ func (m *toolCallCmp) SetSize(width int, height int) tea.Cmd {
297// shouldSpin determines whether the tool call should show a loading animation.
297// shouldSpin determines whether the tool call should show a loading animation.
298// Returns true if the tool call is not finished or if the result doesn't match the call ID.
298// Returns true if the tool call is not finished or if the result doesn't match the call ID.
299func (m *toolCallCmp) shouldSpin() bool {
299func (m *toolCallCmp) shouldSpin() bool {
300− return !m.call.Finished
300+ return !m.call.Finished && !m.cancelled
301}
301}
302
302
303// Spinning returns whether the tool call is currently showing a loading animation
303// Spinning returns whether the tool call is currently showing a loading animation