Repository navigation
Description
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.
- The parent calls
delegate_task. The child repliesREADYand finishes. - The parent sends follow-up A with
t3_thread_send: "Runsleep 120; echo BUILD-DONEwith 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" - After the child's
STARTEDturn ends, the parent sends follow-up B: "Note: nothing changes. Reply with exactly: NOTED, the build is still running." - 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(server): a thread_send follow-up waits only on background work its own runs started #37793 (merged) made a follow-up wait only for background work its own runs started. Its Evidence section notes "A's eventual STARTED result remains on head", and it lists work started by untagged wake runs as not covered.
- [Bug]: A follow-up to a delegated child completes with its interim reply while the child's
t3_background_waitwork is still pending #36403 and A thread_send follow-up task is held by the child's later background work and reports a stale result #37698 (closed): earlier interim or stale follow-up results. - [Bug]: A follow-up delegated task takes its result from the turn that queued a continuation on its own thread; the original task waits for it #32489 (closed): a different path, involving a run the child queued on its own thread.
- fix(server): delegated children can watch their own PR, and the parent hears every result #26704 (open PR) touches
recordSubagentFollowupbut does not change this selection.
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