You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A settled or cancelled child stops its provider process after an idle time #1221
area:agentsOrchestration, slots, delegate, handoff, wake-ups, model policy, review rulessize:mediumContained, several files or teststype:featureNew behaviour or capability
What: when a delegated child is settled or cancelled, the server stops its provider session after a configured idle time. The thread stays, and the next message to it resumes the session.
Why: a finished child keeps a provider process of 2-3 GB, and task_cancel does not end it. That memory counts against capacity, so new writers wait for slots.
Evidence: on one day, two top-priority fixes waited hours for a slot while finished children held memory.
Done when: a settled or cancelled child with no turn for N minutes has no process left, its memory is free and its slot counts as free. A message after that resumes the thread with its history. A child that gets a message before the timeout keeps its process.
State question: the child is resumed while it is being stopped; the server restarts during the wait; the child runs on a linked machine.
Done on main by f930557 (#1036): with stopFinishedChildren.enabled (off by default; grace graceSeconds, 60 s), a delegated child whose task ended (completed, failed, cancelled, interrupted) and that stays idle has its own provider session stopped, a run or request that starts first keeps it (re-checked in the release step), a later message resumes the thread, and a child a linked machine sent is covered too.
area:agentsOrchestration, slots, delegate, handoff, wake-ups, model policy, review rulessize:mediumContained, several files or teststype:featureNew behaviour or capability
Activity
scuttletoby commentedon Nov 29, 2026
Done on main by f930557 (#1036): with
stopFinishedChildren.enabled(off by default; gracegraceSeconds, 60 s), a delegated child whose task ended (completed, failed, cancelled, interrupted) and that stays idle has its own provider session stopped, a run or request that starts first keeps it (re-checked in the release step), a later message resumes the thread, and a child a linked machine sent is covered too.🤖 Generated with Claude Code