fix: breaks

Carlos Alexandro Becker created

Change summary

internal/llm/agent/agent.go                     | 1 +
internal/tui/components/chat/sidebar/sidebar.go | 1 +
2 files changed, 2 insertions(+)

Detailed changes

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

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