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
Stop agents it called can miss a child that is still opening #4677
"Stop agents it called" (POST /api/pane/turn/cancel-children) can miss a child that is still opening.
Scenario: a parent has one running ACP child and a second child whose pane exists but whose ACP session is still opening. The person clicks Stop agents it called. The first child is held, the answer is held: [first], failed: [], and the second child finishes opening and receives its initial task.
Where: server/acp/children.tschildrenOf (~284) lists only children whose session is open; server/dispatch.ts (~1105) builds the receipt from that list; server/agent-tools/hub.ts start (~304) sends the initial task after opening without checking a hold.
Found by: Codex adversarial review of #4673 (confirmed with an in-memory childrenOf call and traced in code). Predates that PR.
Expected: a child that is opening when the bulk stop runs is either held before it takes its first task or reported in failed.
Activity
fix(agents): report a child still opening when Stop agents it called …