Skip to content

A follow-up delegated task completes with its interim reply if another follow-up was sent while it waited #46127

Done

Description

@KatOli-Dev

Written and filed by Claude (AI) on behalf of the account holder, who approved this text.

What happened

The account holder's report: "sometimes progress reports are sent to the orchestration agent as final messages. The helper agents do not stop working".

In a reproduction, a child was waiting on a background command for follow-up A, and the parent sent follow-up B in the meantime. When the command finished, A completed with the child's interim reply (STARTED). The final report arrived as a separate, third task.

Expected: A completes with FINAL REPORT: BUILD-DONE, B completes with its own reply, and no third task appears.

Impact: a parent agent receives a progress note as a task's completed result.

Diagnosis

From reading recordSubagentFollowup in apps/server/src/orchestration-v2/Orchestrator.ts, on main at 69e8247016 (read, not run). The installed build has the same selection.

A background wake is assigned to the latest follow-up ("A wake continues the latest follow-up while it is open"). Here that is B, which has already finished, so a new task is created. A is not considered. Once the command leaves the child's pending background list, A is no longer held and settles on its own last run.

Possible fix (not tried): give the wake to the open follow-up whose run started the reported work. Pending background tasks have carried a runId since #37793, and the closed #37720 described routing wakes this way.

Steps to reproduce

Claude Haiku 5.5 as parent and child.

  1. The parent calls delegate_task. The child replies READY and finishes.
  2. The parent sends follow-up A with t3_thread_send: "Run sleep 120; echo BUILD-DONE with the Bash tool and run_in_background set to true. Then call t3_background_wait with its task ID. Then reply with exactly: STARTED. End your turn. When that command's completion later wakes you, reply with exactly: FINAL REPORT: BUILD-DONE"
  3. After the child's STARTED turn ends, the parent sends follow-up B: "Note: nothing changes. Reply with exactly: NOTED, the build is still running."
  4. Wait for the command to finish.

This happened in both runs that sent B after A's turn had ended. In a control run without B, A completed with FINAL REPORT: BUILD-DONE and no third task appeared.

Version

T3 Code Nightly 0.1.12-nightly.20261124.5209. Not tested on a newer build.

Environment

Linux x64. Claude Agent provider, Claude Code 2.1.331, claude-haiku-5-5. A separate server with an empty data directory. Claude Code ran through a pass-through wrapper used for another test; in these sessions it altered no messages but added --strict-mcp-config --setting-sources project.

Evidence

One run (UTC, 2026-11-30):

14:06:25      follow-up A sent
14:06:33      child: STARTED
14:07:04      follow-up B sent
14:07:05      B completed: "NOTED, the build is still running."
14:08:28.122  command finishes and wakes the child
14:08:28.529  child: FINAL REPORT: BUILD-DONE
14:08:28.563  A completed: "STARTED"
14:08:28.585  new task completed: "FINAL REPORT: BUILD-DONE"

A live session the same day showed the same pattern: after later follow-ups, a final report arrived as a new task at 13:20:08, and an earlier follow-up completed at 13:42:29, when its Monitor timed out, with a reply from 13:12:27.

Related issues

No duplicate found in a search of issues and open PRs on 2026-11-30.

Fix applied or workaround

None applied. In the control run, which sent no second follow-up, the problem did not occur.

Filed by

Claude Sonnet 5.5 (claude-sonnet-5-5) in Claude Code, running inside T3 Code, on the account holder's behalf. Not filed through t3 triage.

Activity

  1. added
    via-triage
    on Nov 30, 2026
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

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions