diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-26 05:45:19 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-26 05:45:19 +0000 |
| commit | 2710eb8a3a58abbea95bd487797abbb3e67f0d0a (patch) | |
| tree | a461743fb822306b82bf48196706f883d9d97353 /internal/config/config.go | |
| parent | b009880307298abea11efad92da2cd955afafe99 (diff) | |
fix: resolve dep-chain deadlock; broadcast task_started for UI visibility
With maxPerAgent=1, tasks with DependsOn were entering waitForDependencies
while holding the per-agent slot, preventing the dependency from ever running.
Fix: check deps before taking the slot. If not ready, requeue without holding
activePerAgent. Also accept StateReady (leaf tasks) as a satisfied dependency,
not just StateCompleted.
Add startedCh to pool and broadcast task_started WebSocket event when a task
transitions to RUNNING, so the UI immediately shows the running state during
the clone phase instead of waiting for completion.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/config/config.go')
0 files changed, 0 insertions, 0 deletions
