@@ -34,7 +34,6 @@ type Model interface {
3434
3535 SetTokenUsage (event * runtime.TokenUsageEvent )
3636 SetTodos (result * tools.ToolCallResult ) error
37- SetWorking (working bool ) tea.Cmd
3837 SetMode (mode Mode )
3938 SetAgentInfo (agentName , model , description string )
4039 SetTeamInfo (availableAgents []string )
@@ -57,7 +56,6 @@ type model struct {
5756 sessionUsage map [string ]* runtime.Usage // sessionID -> latest usage snapshot
5857 sessionAgent map [string ]string // sessionID -> agent name
5958 todoComp * todotool.SidebarComponent
60- working bool
6159 mcpInit bool
6260 ragIndexing map [string ]* ragIndexingState // strategy name -> indexing state
6361 spinner spinner.Spinner
@@ -103,15 +101,6 @@ func (m *model) SetTodos(result *tools.ToolCallResult) error {
103101 return m .todoComp .SetTodos (result )
104102}
105103
106- // SetWorking sets the working state and returns a command to start the spinner if needed
107- func (m * model ) SetWorking (working bool ) tea.Cmd {
108- m .working = working
109- if working {
110- return m .spinner .Init ()
111- }
112- return nil
113- }
114-
115104// SetAgentInfo sets the current agent information
116105func (m * model ) SetAgentInfo (agentName , model , description string ) {
117106 m .currentAgent = agentName
@@ -232,20 +221,16 @@ func (m *model) Update(msg tea.Msg) (layout.Model, tea.Cmd) {
232221 default :
233222 var cmds []tea.Cmd
234223
235- // Update main spinner for working/mcpInit states
236- if m .working || m .mcpInit {
237- var cmd tea.Cmd
238- var model layout.Model
239- model , cmd = m .spinner .Update (msg )
224+ // Update main spinner
225+ if m .mcpInit {
226+ model , cmd := m .spinner .Update (msg )
240227 m .spinner = model .(spinner.Spinner )
241228 cmds = append (cmds , cmd )
242229 }
243230
244231 // Update each RAG indexing spinner
245232 for _ , state := range m .ragIndexing {
246- var cmd tea.Cmd
247- var model layout.Model
248- model , cmd = state .spinner .Update (msg )
233+ model , cmd := state .spinner .Update (msg )
249234 state .spinner = model .(spinner.Spinner )
250235 cmds = append (cmds , cmd )
251236 }
@@ -286,8 +271,6 @@ func (m *model) verticalView() string {
286271 }
287272 if working := m .workingIndicator (); working != "" {
288273 session = append (session , working )
289- } else {
290- session = append (session , "" ) // spacer for layout consistency
291274 }
292275
293276 var main []string
@@ -314,11 +297,6 @@ func (m *model) verticalView() string {
314297func (m * model ) workingIndicator () string {
315298 var indicators []string
316299
317- // Add working indicator if agent is processing
318- if m .working {
319- indicators = append (indicators , styles .ActiveStyle .Render (m .spinner .View ()+ " " + "Working…" ))
320- }
321-
322300 // Add MCP init indicator if initializing
323301 if m .mcpInit {
324302 indicators = append (indicators , styles .ActiveStyle .Render (m .spinner .View ()+ " " + "Initializing MCP servers…" ))
@@ -395,10 +373,6 @@ func (m *model) workingIndicator() string {
395373func (m * model ) workingIndicatorHorizontal () string {
396374 var labels []string
397375
398- // Add working indicator if agent is processing
399- if m .working {
400- labels = append (labels , "Working…" )
401- }
402376 // Add MCP init indicator if initializing
403377 if m .mcpInit {
404378 labels = append (labels , "Initializing MCP servers…" )
@@ -534,9 +508,8 @@ func (m *model) agentInfo() string {
534508
535509 // Agent description if available
536510 if m .agentDescription != "" {
537- // Truncate description for sidebar display
538511 description := m .agentDescription
539- maxDescWidth := max ( m .width - 4 , 20 ) // Leave margin for styling
512+ maxDescWidth := m .width - 2
540513 if len (description ) > maxDescWidth {
541514 description = description [:maxDescWidth - 1 ] + "…"
542515 }
0 commit comments