After a usage limit, a Claude child's later turns are withheld behind a stuck queued run, and its delegated task delivers an old progress note #46128
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". This issue covers one way that happened: after a usage limit.
If Claude Code starts new native turns back to back while the account is limited, T3 queues a continuation run and stops recording those turns. After the reset, the resume run succeeds, then T3 records an old limit rejection as a new failed run and queues another. Later turns stay hidden. In the reproduction, a new message flushed them. In the live session no message came within the 4-hour idle pin, the session was closed, the final report never reached T3, and a follow-up delegated task completed with a six-hour-old progress note.
Expected:
- A rejection received before the reset does not fail a run, or block the thread again, after it.
- Every turn Claude Code runs is recorded promptly.
- Releasing a session does not silently drop unrecorded output, and a delegated task does not then report
completedwith an older reply.
Impact: a child's final report can be hidden or lost, and the parent can be given an outdated note marked completed.
Diagnosis#
Read in source, in both the installed build and main at 69e8247016 (apps/server/src/orchestration-v2/):
offerWakeContinuation(Claude adapter) offers no new continuation while the native thread already has one outstanding. Later messages only collect in an in-memory wake buffer.usageLimitHoldsQueue(Orchestrator.ts) stops a queued run from starting while the latest executed run is the usage-limited one.limitRecoveryCommand(UsageLimitRecoveryWorker.ts) returns nothing when the failed run's reset time is not later than that run's completion. A failure carrying an already-passed reset therefore gets no auto-resume.
Together, 2 and 3 explain why the second queued run stays stuck until someone sends a message, and 1 explains why nothing after it is recorded.
Inferred from timing, not traced:
- The new failed run comes from replaying buffered rejections after the reset. Claude Code started no turn when it failed.
- The pending background list, which is not updated while messages stay buffered, keeps the session pinned and the task open. Releasing the session after the 4-hour limit (
DEFAULT_MAX_IDLE_PIN_MS) discards the buffer.
Steps to reproduce#
The usage limit was injected, not real. A separate server with an empty data directory, Claude Haiku 5.5 as parent and child. The provider's binaryPath pointed at a wrapper around the real Claude Code. For one 150 s window it replaced each turn's model output with a rate_limit_event (rejected), a synthetic 429 assistant message and an error result, shaped like recorded ones. System and task messages passed through unchanged. autoResumeLimitedThreads was on.
- The parent calls
delegate_task; the child replies and finishes. - The parent sends a follow-up with
t3_thread_send. The child:- starts a Monitor running
sleep 12; for i in $(seq 1 30); do echo tick $i; sleep 0.7; done; - starts
sleep 60; echo BUILD-DONEin the background; - calls
t3_background_waiton both and repliesINTERIM.
- starts a Monitor running
- The limit window opens when that turn ends. Monitor events start turns back to back.
- On "Continue where you left off.", the child starts
sleep 60; echo FINAL-CHECKin the background, waits on it, repliesRESUMED, and later repliesFINAL REPORT: all checks passed.
Reproduced once with back-to-back turns. Control: with Monitor events 20 s or 2 s apart, each rejected turn got its own run, auto-resume worked, the final report was delivered, and nothing was left queued. The 4-hour expiry was not reproduced; it comes from the live session below.
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. Live session: claude-opus-5-5; reproduction: claude-haiku-5-5.
Evidence#
Reproduction (UTC, 2026-11-30):
| Time | Observed |
|---|---|
| 14:01:23 | INTERIM. Window opens; reset 14:03:53. |
| 14:01:33 to 14:02:21 | Claude Code runs 25 rejected turns. T3 records two failed runs. |
| 14:01:37.277 | A continuation (id …:ordinal:5) is queued as the second run fails. |
| 14:01:54, 14:02:21 | Monitor and command finish. T3 still lists both as pending and awaited. |
| 14:03:56 | Auto-resume sends the message. |
| 14:04:03.9 | RESUMED. |
| 14:04:04 | Run :5 starts and fails with usage_limit. Claude Code started no turn then. Run :8 is queued. |
| 14:05:02 | Claude Code replies FINAL REPORT. T3 records nothing. |
| 14:08:38 | Still nothing. A new message is sent. |
| 14:08:39 | The new run completes. Run :8 then replays the 22 remaining rejections and the FINAL REPORT. The original follow-up task completes with INTERIM; the resume's task completes with the final report. |
Live session, with a real limit that reset at 08:10:00 (UTC, 2026-11-30):
| Time | What happened | Source |
|---|---|---|
| 06:11:01 | Last reply of the run tied to follow-up task F: a progress note. F stays open on an awaited command. | database |
| 06:34:31.249 | A continuation (id …:ordinal:34) is queued. | orchestration_events |
| 06:34:32 to 06:41:01 | 24 more rejected native turns. None gets its own run. | provider log, database |
| 06:40:55 to 06:41:00 | Claude Code reports both awaited tasks killed, then an empty background list. | provider log |
| 08:10:01 | The resume run starts. T3 still lists both killed tasks. | orchestration_events |
| 08:10:45.977 | The resume run succeeds. Rate limit status allowed. | provider log |
| 08:10:46.283 | Run :34 fails with usage_limit, showing the old reset time. No provider messages between 08:10:45.979 and 08:11:50.682. Run :37 is queued. | database, provider log |
| 08:11:50 to 08:18:50 | A native turn runs tests, commits and ends with the final report. None of it is in the database. | provider log, database, git |
| 12:13:50.773 | idle-release-pin-expired, pinnedForMs: 14400090. query.close follows. | server trace, provider log |
| 12:13:50.838 | F completes with the 06:11:01 note, and the parent is woken with it. | database |
| 13:12:28 | Run :37 starts, after a new message. The held output does not appear. | orchestration_events |
Related issues#
No existing issue found that covers the whole sequence (searched 2026-11-30).
- #45889 (open): a queued Claude continuation replays a stale 429. It reports a wrong "Limited" banner; here later output is also withheld. In #45889 the reset had not passed; here it had.
- #20430 (closed): the same one-continuation latch. A maintainer's comment there says the part where it can swallow later wakes while the CLI stays alive is still open, and asks for a new issue. This is one way to reach that, through a usage limit.
- #28163 and #30052 (closed): other triggers of that latch (a failed dispatch, a cancelled queued run).
- #36592 (open PR): by its description, it settles a replayed rejection as completed when it arrived before the reset and replays after it. That matches the failed run here. Untested.
- #29354 (open PR): changes when the 4-hour idle pin expires. It would not by itself record the withheld turn.
- #36405 (closed): an earlier stale-replay report.
Fix applied or workaround#
Nothing was fixed. Workaround: send the stuck child any message before the 4-hour idle pin expires. In the reproduction this flushed the withheld output. The original task still delivers its old note, so read the later one.
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.
KatOli-Dev(GitHub profile, opens in a new tab) added labelsvia-triage
tanstack-source added labelsbug
Sign in to join this conversation.