fix: stop spawning testing agents after project completion (#66)

When all features pass, the orchestrator continued spawning testing
agents for 10+ minutes, wasting tokens on unnecessary regression
tests. Added a check for get_all_complete() to prevent this.

Fixes: leonvanzyl/autocoder#66

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
cabana8471
2026-01-25 12:07:53 +01:00
parent 486979c3d9
commit 33e9f7b4d0

View File

@@ -401,6 +401,10 @@ class ParallelOrchestrator:
if passing_count == 0:
return
# Don't spawn testing agents if all features are already complete
if self.get_all_complete():
return
# Spawn testing agents one at a time, re-checking limits each time
# This avoids TOCTOU race by holding lock during the decision
while True: