Skip to content

[Bug]: Resumed Claude delegate completes without waking parent; task_status retains interrupted attempt #43432

Done

Description

@opgrsankkar

Problem

A delegated Claude child was interrupted when its parent was stopped. After the child was resumed and completed in a second run, its result was available but no completion turn woke the parent. task_status kept the original interrupted status/summary while exposing the completed result in latestTerminal*.

Verified timeline (2026-11-26, UTC)

  • 07:44:28: parent delegates an async Claude Haiku task. Both parent and child run under full-access on Linux, T3 MCP version 0.1.12.
  • 08:33:09.989: parent activity records run_interrupt_request, text Stopped by user.
  • 08:33:10.116 / .778: child records interrupt request/result, also Stopped by user; child run 1 becomes interrupted.
  • 08:38:57.137: child gets notification Resumed thread; run 2 starts. The notification does not identify who resumed it. We cannot claim it resumed automatically.
  • 08:42:38.252: parent receives a server-created /compact message (creationSource: server, message id prefix idle-compact:). Compaction finishes at 08:43:59.500.
  • 09:52:56.980: child run 2 completes with its full final result.
  • 09:55:27.008: the next parent turn is started by the user: Subagent is done. Didn’t kick you back on? No intervening completion wake turn appears in parent history.
  • 09:55:35.763: parent calls task_status. It returns status: interrupted, workState: result_available, hasPendingChildRuns: false; childRunId still names run 1; summary ends with Stopped by user. It also returns latestTerminalRunId naming run 2, latestTerminalStatus: completed, and the full successful latestTerminalSummary. Both runs have distinct result context transfer ids.
  • The parent timeline subagent card contains the successful result and status completed, but this did not start a parent continuation.

Expected

When a stopped delegated child is explicitly resumed and completes, either reattach its completion delivery to the parent or clearly expose that no parent wake is armed. Resolve stale task status so callers can distinguish the original attempt from the latest completed run.

Reproduction status and scope

Observed once in a real session; not rerun as a minimal reproduction. Likely reproduction: async delegate -> Stop parent -> resume child -> let parent auto-compact -> child completes -> check whether parent is woken and compare task_status fields.

The ordering rules out the earlier theory that this compaction stopped the child: the Stop preceded compaction by about nine minutes. The log does not establish whether compaction contributes to the later missed wake. This report makes no claim that the user issued /compact or that the child resumed by itself.

Related: #34401 (Stop cascades to delegated children; closed after interruption notices were added), #17512 (Codex child completion missing parent wake). This incident concerns a resumed Claude child and a stale original interrupted task alongside a newer successful run.

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