Skip to content

Commit f8aae2e

Browse files
committed
Fix frozen spinner during MCP tool loading
The ToolsetInfoEvent handler called sidebar.SetToolsetInfo() directly and returned nil, bypassing the sidebar's Update() method which starts the spinner animation. Forward the event via forwardToSidebar() so the spinner registers with the animation coordinator and animates properly. Assisted-By: docker-agent
1 parent bd55840 commit f8aae2e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pkg/tui/page/chat/runtime_events.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ func (p *chatPage) handleRuntimeEvent(msg tea.Msg) (bool, tea.Cmd) {
120120
return true, nil
121121

122122
case *runtime.ToolsetInfoEvent:
123-
p.sidebar.SetToolsetInfo(msg.AvailableTools, msg.Loading)
124123
p.sidebar.SetSkillsInfo(len(p.app.CurrentAgentSkills()))
125-
return true, nil
124+
return true, p.forwardToSidebar(msg)
126125

127126
case *runtime.SessionTitleEvent:
128127
return true, p.forwardToSidebar(msg)

0 commit comments

Comments
 (0)