diff --git a/internal/llm/agent/agent.go b/internal/llm/agent/agent.go index 67bc861bbe5b106fa134abbf492cad855d2d362a..17a67f810b335f1dad105321a0bb0a8b354c9bfc 100644 --- a/internal/llm/agent/agent.go +++ b/internal/llm/agent/agent.go @@ -249,6 +249,7 @@ func (a *agent) IsBusy() bool { for cancelFunc := range a.activeRequests.Seq() { if cancelFunc != nil { busy = true + break } } return busy diff --git a/internal/tui/components/chat/sidebar/sidebar.go b/internal/tui/components/chat/sidebar/sidebar.go index 3ab2e9563420e5f3c6365bc71a66e35ab7b79f11..1f5fd2a672e3d643efbed4ca35b08ed88c55d2eb 100644 --- a/internal/tui/components/chat/sidebar/sidebar.go +++ b/internal/tui/components/chat/sidebar/sidebar.go @@ -201,6 +201,7 @@ func (m *sidebarCmp) handleFileHistoryEvent(event pubsub.Event[history.File]) te existing.Deletions = deletions m.files.Set(file.Path, existing) found = true + break } if found { return nil