From ff3c926b634d0db1498bb22bd2cb1146af9d7bcd Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Sat, 26 Jul 2025 12:51:09 +0200 Subject: [PATCH] chore: fix tool spinning --- internal/tui/components/chat/messages/tool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/tui/components/chat/messages/tool.go b/internal/tui/components/chat/messages/tool.go index 2f639c5c5d192ba9c59402976e552462d8ebcd0b..c3a075bea088f913d3b0677d5a5a4031bd885a49 100644 --- a/internal/tui/components/chat/messages/tool.go +++ b/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