# fix\(server\): a completed Claude subagent that resumes while the root is idle goes live again \(\#16610\) · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/97f4d6cf3b9c5067b757ae2d47f47b4fe8fd9baf)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 97f4d6cf3b9c5067b757ae2d47f47b4fe8fd9baf

Requested commit: 97f4d6cf3b9c5067b757ae2d47f47b4fe8fd9baf

Commit: 97f4d6cf3b9c5067b757ae2d47f47b4fe8fd9baf

Tree: ec3717bd138ea4bb6785b0b8e07f474ccb3161b2

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(server): a completed Claude subagent that resumes while the root is idle goes live again (#16610)

Claude reports a background subagent completed when its turn ends with its own
shell still running, then resumes it with a task_started under the original
launch call while the root turn is idle. That start was only buffered as wake
evidence, so the card stayed Finished and every child frame was held behind it.
Apply that exact resume (known terminal subagent, same launch tool_use_id)
against the settled turn, keeping the subagent's own run.

The test now waits on an idle roster update as an ordered event barrier, so it
fails on the status assertion without the fix instead of reading events before
they are delivered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [7cc3627f2e73944540e45f875b8d5fccc536f5f4](https://git.cafe/pingdotgg/t3code/commit/7cc3627f2e73944540e45f875b8d5fccc536f5f4?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/97f4d6cf3b9c5067b757ae2d47f47b4fe8fd9baf?format=markdown)
