diff --git a/internal/tui/components/chat/messages/messages.go b/internal/tui/components/chat/messages/messages.go index 6e7d867c6bd1baf6f4f8998b5b01f054cafffff0..e8ae97056728a0377ddcad179ecae1246f2da662 100644 --- a/internal/tui/components/chat/messages/messages.go +++ b/internal/tui/components/chat/messages/messages.go @@ -66,10 +66,7 @@ func NewMessageCmp(msg message.Message) MessageCmp { // Returns a command to start the animation for spinning messages. func (m *messageCmp) Init() tea.Cmd { m.spinning = m.shouldSpin() - if m.spinning { - return m.anim.Init() - } - return nil + return m.anim.Init() } // Update handles incoming messages and updates the component state. diff --git a/internal/tui/components/chat/messages/tool.go b/internal/tui/components/chat/messages/tool.go index 41c3d9656de59bcfae9cae3b5d9a8a07cfaf9afd..90ced40eeb54c0509dae9e74775462a179e0ad28 100644 --- a/internal/tui/components/chat/messages/tool.go +++ b/internal/tui/components/chat/messages/tool.go @@ -114,10 +114,7 @@ func NewToolCallCmp(parentMessageID string, tc message.ToolCall, opts ...ToolCal // Returns a command to start the animation for pending tool calls. func (m *toolCallCmp) Init() tea.Cmd { m.spinning = m.shouldSpin() - if m.spinning { - return m.anim.Init() - } - return nil + return m.anim.Init() } // Update handles incoming messages and updates the component state.