Runner now creates a reservation entry (PID=-1) in the workspace Registry immediately when approving a dispatch. This prevents parallel requests from all seeing count < limit before any spawn completes. Reservations are counted by countRunningByAgent/ByModel (PID < 0 = always count). Agentic overwrites with real PID via TrackWorkspace after spawn. Co-Authored-By: Virgil <virgil@lethean.io> |
||
|---|---|---|
| .. | ||
| paths.go | ||
| queue.go | ||
| queue_test.go | ||
| runner.go | ||
| runner_test.go | ||