mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-01-30 06:12:06 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user