From 33e9f7b4d0b092fc9bba9026587ebb10f74129be Mon Sep 17 00:00:00 2001 From: cabana8471 Date: Sun, 25 Jan 2026 12:07:53 +0100 Subject: [PATCH] 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 --- parallel_orchestrator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/parallel_orchestrator.py b/parallel_orchestrator.py index d2db637..486b963 100644 --- a/parallel_orchestrator.py +++ b/parallel_orchestrator.py @@ -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: