mirror of
https://github.com/charmbracelet/crush.git
synced 2025-08-02 05:20:46 +03:00
chore: fix tool spinning
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user