SetSuppressed enables or disables animation suppression. When suppressed, ShowThinkingAnimation stores the message but does not start the spinner goroutine. This prevents the animation from conflicting with go-prompt's rendering.
(v bool)
| 36 | // ShowThinkingAnimation stores the message but does not start the spinner goroutine. |
| 37 | // This prevents the animation from conflicting with go-prompt's rendering. |
| 38 | func (am *AnimationManager) SetSuppressed(v bool) { |
| 39 | am.mu.Lock() |
| 40 | am.suppressed = v |
| 41 | am.mu.Unlock() |
| 42 | } |
| 43 | |
| 44 | // ShowThinkingAnimation inicia ou atualiza a animação "pensando" |
| 45 | func (am *AnimationManager) ShowThinkingAnimation(message string) { |