Skip to content

Delegated child stalls after a background subagent's finished-notification run ends empty #1050

Done

Description

@scuttletoby

What happens

A delegated Claude child starts an in-process subagent with the native Agent tool in the background and ends its turn to wait. When the subagent finishes, the "Subagent … finished" notification starts a new run on the child. That run ends after about 3 s with no assistant text and no tool calls. The parent then gets "Child task completed without an assistant result", and the child's job stalls until someone sends the child a message.

Seen twice on 2026-11-23 (03:33Z and 11:59Z) on 0.1.12-nightly.20261121.5051.fork.1.

Related upstream issues (closed)

  • 37920: a later queued run that ends without text replaces the child's report.
  • 38218: background-job wakes on delegated Claude children.

Both are about Bash background jobs. This case is the in-process subagent notification, which those fixes may not cover.

Workaround now

T3's own orchestration guidance already says children use Agent with run_in_background:false, and a background agent must be a delegate_task. Children that follow that never hit this. Parents can unblock a stalled child with one t3_thread_send.

Fix options (to decide after checking upstream main)

  1. The notification run must give the subagent's result to the model, so the model continues the job.
  2. If a wake run ends with no text and no tool calls while the task is not done, resend the wake once, then mark the task "stalled" for the parent instead of "completed".
  3. Fork-side guard: refuse or warn on a background Agent call inside delegated children (thin add-on, no upstream seam).

Steps: first check whether upstream main already fixes this. If it does, take it with the nightly sync. If not, use option 2, or option 3 as a thin add-on.

🤖 Generated with Claude Code

Activity

  1. added
    area:agents
    size:medium
    type:bug
    on Nov 29, 2026
  2. scuttletoby commented on Nov 29, 2026

    @scuttletoby
    OwnerAuthor

    Claim: a writer from the minors sweep is taking option 3 here (a fork-side guard: in a delegated child, Claude's Agent with run_in_background: true is refused with a message that says to run it in the foreground or use delegate_task). Branch fix/child-background-agent-1050.

    🤖 Generated with Claude Code

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

    area:agentssize:mediumtype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions