delegate_task reports a transient provider error as failed while the child keeps running and later completes
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start in apps/server/src/mcp/OrchestratorMcpService.ts by tracing the wait handling around line 1813 and the heldForRestart / delegatedTaskResultPending logic around line 1540. Compare how transient failures and restart continuations affect task status, child execution, and node IDs. Done means a failed result cannot leave a child running unnoticed, and completion notifications remain traceable to the task returned by delegate_task.
索引モデルが issue の本文から書いたものです。
説明
What happened
A delegate_task call came back as failed right away, so the parent agent retried it. The first child was still running, though. It finished later and reported completed, so both children did the same work at the same time and edited the same files.
Diagnosis
delegate_task(mode: "wait", Claude provider,claude-fable-5-2, effort high) returned immediately withstatus: "failed",workState: "result_available",latestTerminalStatus: "failed". The summary was a transient upstream error:Failed to authenticate. API Error: 403 Attention Required! | Cloudflare. Native Claude subagents in the same thread hit the same 403 at about the same time, so this was an edge or auth blip, not a bad credential. It lines up with a Claude incident, Elevated errors on claude.ai, Claude Code, and platform.claude.com (opened 09:58 UTC for authentication failures, fix deployed 11:05 UTC). The upstream error is only the trigger. This report is about how T3 handles a provider failure, which any provider outage can cause.- The parent retried with an identical
delegate_task. That child completed and said files had been changed under it by "another writer". - Later the parent received a completed notification with the full result of the first task. It arrived under a different node id than the one
delegate_taskhad returned:- returned:
node:delegated-task:command%3Amcp%3A<uuid>%3Adelegate-task%3A<task-id> - notified:
node:delegated-task:<other-id>
- returned:
Likely code path:
apps/server/src/mcp/OrchestratorMcpService.ts(around line 1813):waitreportsresult_availableplus the run's terminal status as soon as one child run ends, so a single failed run becomes the task's final result.- The same file (around line 1540,
heldForRestart/delegatedTaskResultPending) holds the status back only when the child will be continued after a T3 restart. Nothing similar covers a run that fails on a transient provider error and then continues. - T3 did not restart during this. The desktop app last installed an update and relaunched at 07:58 UTC, nearly two hours before the failure, and the server process ran without a restart from then on. So restart continuation is not what kept the child going.
- Because the completion arrived under a different node id, the parent had no way to tie it back to the "failed" task and stop its retry.
This looks related to #29988 (a delegated task fails on a passing provider error, so a retry repeats finished steps). That issue is closed as completed, but no fix is linked to it, and it doesn't cover the "failed" child carrying on and completing on its own.
Steps to reproduce
Observed once, not yet a deterministic repro:
- From a Claude thread, call
delegate_taskwithmode: "wait"for a long task on a Claude model. - Have the provider return a transient error (here, a Cloudflare 403) early in the child's run.
delegate_taskreturnsfailed. Retry it.- Both children run at the same time, and the first one later notifies completion under a different node id.
Expected: a transient provider failure keeps the task working until the child really stops (as across restarts), or a task reported failed has its child stopped. A delegated task's node id should also stay the same from the delegate_task result through to its completion notification.
Version
0.1.10-nightly.20261113.4616 (desktop app, local server)., running since 07:58 UTC with no restart during the incident
Environment
macOS 26.7.1 arm64, Node v26.13.0, Claude Code 2.1.311
Evidence
Timeline (UTC, 2026-11-13), from the parent thread's activity:
| Time | Event |
|---|---|
| 07:58 | Desktop update to 0.1.10-nightly.20261113.4616 installed and the app relaunched; no restart after this |
| ~09:43 | delegate_task called |
| 09:47:17 | It returns failed with the 403 |
| 09:53 | Parent retries with a second delegate_task |
| 09:58 | Claude incident opened |
| 10:00:43 | The first task finishes as completed under node:delegated-task:<other-id> |
| 10:07:45 | The retry completes and reports "another writer" rewrote the files at 10:00 |
| 10:51:08 | The parent receives the late "Delegated task … finished" notification for the first task. It was queued at 10:00:43 but only delivered when the parent's current turn ended |
delegate_task -> status: failed, workState: result_available, latestTerminalStatus: failed
summary: "Failed to authenticate. API Error: 403 Attention Required! | Cloudflare"
retry delegate_task -> completed ("another writer finished it while I was reading")
later notification: node:delegated-task:<other-id> "…" status: completed (full result of the first task)
Related issues
- #29988, the same retry-duplicates-work problem; closed with no linked fix
- #36149, how these provider errors are displayed
🤖 Claude Opus 5.5
- 主要言語
- TypeScript
- スター
- 24.8k
- フォーク
- 6.4k
- 平均マージ
- 59分
- マージ済み PR(30日)
- 418
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pingdotgg/t3code のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
via-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: Settings inheritance popover shows raw slugs for branch naming, default permissions and response streaming対応中かも @juliusmarminge が 1 日前に担当しました。 オープンvouch:denounced
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
pingdotgg/t3code の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nikoheikkila/nikoheikkila.fi#1131 ·
メンテナーはふだん 1 日以内に返信
-
Resources: Update work of urumqi対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
railmapgen/rmp-gallery#4176 ·
メンテナーはふだん 2 日以内に返信
-
GraphQL custom headers duplicate differently cased default headers対応中かも @yxr-2025 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
elie222/rakazo#4625 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
[New Project]: Pacaオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
github/forgoodfirstissue#574 ·