chore: fix tool spinning

This commit is contained in:
Kujtim Hoxha
2025-07-26 12:51:09 +02:00
parent 42b659d1a2
commit ff3c926b63

View File

@@ -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