Skip to content

Stop agents it called can miss a child that is still opening #4677

Done

Description

@devswha

"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.ts childrenOf (~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

  1. added a commit that references this issue on Nov 26, 2026
    03d50dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions