on main help sign in
chore: fix tool spinning
commitff3c926b634d0db1498bb22bd2cb1146af9d7bcd authorKujtim Hoxha <kujtimii.h@gmail.com> dateSat 26 Jul 2025, 12:51 (1 year ago) parent42b659d
1 file changed+1−1
internal/tui/components/chat/messages/tool.go+1−1
internal/tui/components/chat/messages/tool.go+1−1
@@ -297,7 +297,7 @@ func (m *toolCallCmp) SetSize(width int, height int) tea.Cmd {
297297// shouldSpin determines whether the tool call should show a loading animation.
298298// Returns true if the tool call is not finished or if the result doesn't match the call ID.
299299func (m *toolCallCmp) shouldSpin() bool {
300− return !m.call.Finished
300+ return !m.call.Finished && !m.cancelled
301301}
302302
303303// Spinning returns whether the tool call is currently showing a loading animation