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
Carlos Alexandro Becker created
internal/llm/agent/agent.go | 1 +
internal/tui/components/chat/sidebar/sidebar.go | 1 +
2 files changed, 2 insertions(+)
@@ -249,6 +249,7 @@ func (a *agent) IsBusy() bool {
for cancelFunc := range a.activeRequests.Seq() {
if cancelFunc != nil {
busy = true
+ break
}
}
return busy
@@ -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