Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/web (status display), with the cause in apps/server
Steps to reproduce
-
Open a new Claude thread in T3 Code (any project) and send this:
This is a T3 Code bug repro. Do only these steps, and keep every reply to one line. 1. Use delegate_task to start a background child named "repro-B" with the prompt: "Reply with the word ready, then stop." 2. When repro-B has finished, use delegate_task to start a background child named "repro-A" with this prompt, filling in repro-B's child thread id: "Use t3_thread_send to send thread <repro-B thread id> this message: 'Run a shell command that sleeps for 180 seconds, then reply done.' Then reply sent and stop." 3. When repro-A has finished, reply "Repro started" and end your turn. Do not wait on, read or message repro-B again. -
When the parent replies "Repro started", switch to a different thread so the parent's row is unread.
-
Watch the parent's sidebar row, then open the parent and look at its child cards and Lineage panel, all within the next ~3 minutes while repro-B sleeps.
So: a parent starts two children, one child (A) wakes its sibling (B) with t3_thread_send, and the parent's turn ends while B is still running.
Expected behavior
The parent shows Working or Waiting until repro-B finishes, the way it does when the parent itself started the child's run.
Actual behavior
Reproduced twice. A 13 s recording is in the first comment, with red arrows marking the two states.
- About 2 s after the parent's turn ends, its sidebar row shows the green Done badge, while repro-B has 3 minutes of sleep left. It never shows Working or Waiting again.
- Opening the parent, its Lineage panel says "Lineage · 1 running: repro-B". So the same window shows the thread as Done in the sidebar and as running in its Lineage panel. The chat cards for both children already say Finished.
- About 4 s later, the Lineage panel flips to Previous agents (2), although repro-B keeps running for almost 3 more minutes.
t3_thread_listwithincludeSubagents: truereturns the parent ascompletedwithpendingBackgroundTasks: [], and repro-B asrunning.t3_thread_waiton the parent withuntilDelegatedWorkSettled: truealso returns right away, while repro-B is still running.
First seen in a real multi-agent run, where a lead coordinates several children that message each other. The lead was completed with pendingBackgroundTasks: [], and two children were running, each on a run started by a t3_thread_send from a sibling. There the Lineage panel did say "3 running", but the sidebar showed Done.
Likely cause (main @ 10fb3fb):
- A parent's sidebar status only holds on its own work.
apps/web/src/components/Sidebar.logic.ts:984resolveSidebarThreadStatusreads only the thread's ownruntime, plus pending approvals and input from children.apps/web/src/components/Sidebar.logic.ts:1345resolveThreadStatusPillholds "Waiting" only throughbackgroundWorkHoldsCompletion(thread.pendingBackgroundTasks).
pendingBackgroundTaskscomes from the parent's own active turn items and its provider threads' tasks:packages/shared/src/orchestrationV2PendingBackgroundWork.ts:261derivePendingBackgroundWork.- A child run is tied to the parent as a follow-up task only when the parent (or the user) sent the message.
apps/server/src/orchestration-v2/Orchestrator.ts:10553recordSubagentFollowupreturns early whencommand.senderThreadId !== undefined && command.senderThreadId !== parentThreadId(lines ~10576-10585). So when a sibling wakes a child, the run gets no task and no row in the parent. Nothing holds the parent, and it falls through to Done.
The parent's child cards and "Previous agents" list seem to go by the same task records, since they call repro-B Finished once its first task is done (not checked in the code).
Possible fixes:
- Hold the parent's status (Waiting, without waking it) while any descendant thread has an active run, using the same data as the Lineage panel's running count. Or
- In
recordSubagentFollowup, record runs that a sibling started as background work on the child's parent too, so they appear inpendingBackgroundTasksandbackgroundWorkHoldsCompletioncovers them. Whether that should also wake the parent when the run ends is a separate choice.
Related but different: #31087 (the completion alert fires while the parent is about to continue).
Impact
Minor bug or occasional failure
Version or commit
Desktop 0.1.13; code references are from main @ 10fb3fb
Environment
Windows 11, T3 Code (Beta) desktop 0.1.13, Claude provider (Opus 5.5)
Logs or stack traces
No response
Screenshots, recordings, or supporting files
Recording in the first comment.
Workaround
None in the UI. t3_thread_list with includeSubagents: true shows the children's real status.
Activity
diegogarber commentedon Nov 30, 2026
repro-parent-done-while-child-runs.mp4
chore(upstream): port Wave 1 high-value upstream fixes (26 PRs, 39f75bc…