chore: fix tool spinning

Kujtim Hoxha created

Change summary

internal/tui/components/chat/messages/tool.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

internal/tui/components/chat/messages/tool.go 🔗

@@ -297,7 +297,7 @@ func (m *toolCallCmp) SetSize(width int, height int) tea.Cmd {
 // shouldSpin determines whether the tool call should show a loading animation.
 // Returns true if the tool call is not finished or if the result doesn't match the call ID.
 func (m *toolCallCmp) shouldSpin() bool {
-	return !m.call.Finished
+	return !m.call.Finished && !m.cancelled
 }
 
 // Spinning returns whether the tool call is currently showing a loading animation