docs(agent-loop): track scheduler drain follow-up

This commit is contained in:
Tianyi Cui
2026-07-18 20:35:58 +08:00
parent 3b52d216f3
commit 78f68dbbb9

View File

@@ -176,6 +176,8 @@ async function runGroup(
}
// Ordered pre-execute may await; only dispatch/body overlaps.
// TODO: Drain every started call before rethrowing a scheduler error; tool
// bodies must not outlive the failed turn.
await fillPool()
while (inFlight.size > 0) {
const settledIndex = await Promise.race(inFlight.values())