Cascade error on agentic task — Plan, Run Code, and Tools Agent all failing in sequence
User ygkang4354 submitted a screenshot on 19/05/2026 showing a full cascade of agent step failures with no accompanying description. The screenshot shows the following steps all marked with error: Plan, Run Code (×6), Tools Agent (×2). The app displayed a generic error message: "Something went wrong. Please try again. This error has been reported."
No steps to reproduce were provided. Team requested reproduction steps on 21/05/2026 — no response from user as of 25/05/2026 despite a follow-up ping. Root cause unknown without logs or repro steps.
Screenshot attached (see attachments). The pattern of repeated Run Code and Tools Agent failures suggests either a retry loop hitting a persistent error, or an upstream model/tool dispatch failure causing the entire agent chain to collapse.
Reported by: @ygkang4354 Discord ticket: https://discord.com/channels/1470856511193616498/1506495818838970519 Priority: medium Attachments (1): image (1).webp — ask support team for files
The cascade pattern here (Plan + Run Code ×6 + Tools Agent ×2 all error, generic "Something went wrong") looks like a likely duplicate of #3193, which is the canonical thread for this exact failure mode.
Overlap with known causes:
| Symptom | Cause |
|---|---|
| Run Code ×6 all failing | Tracked in #3193 — run_code 404 when a completion-only model is bound to the coding role; orchestrator retries → cascade. PR #3211 (open) adds an actionable error and an unmistakable failure envelope so the orchestrator can't narrate fabricated success. |
| Tools Agent ×2 failing | #3193 also notes delegate_tools_agent consistently returns 400 Insufficient budget — the classification side of that 400 is now handled by #3121 (merged 2026-06-01, commit e9c38ea61), which surfaces it as budget_exhausted with actionable copy instead of the generic "Something went wrong" apology. |
| "Something went wrong" copy | Pre-#3121 path for the budget side; pre-#3211 path for the completion-only 404 side. |
What's still blocked: PR #3211 explicitly deferred a few sub-symptoms from #3193 ("delegate_tools_agent 400 Insufficient budget" on no-op calls, spawn_parallel_agents non-determinism, whether parallel_tools=true is honored) because the original reporter's transcript wasn't available.
Ask: could the support team grab @ygkang4354's screenshot + transcript from the Discord ticket (https://discord.com/channels/1470856511193616498/1506495818838970519) and attach them here? Same agentic_provider + model-binding details from #3193 would let us confirm whether this is the same model-misconfig + budget pair, and would unblock the deferred items in #3211 with a second data point.
Suggest keeping this open until #3211 merges, then asking @ygkang4354 to re-test on the next release build. If the cascade pattern was just the budget 400 retrying (no completion-only model involved), it's already gone in main via #3121.
Status / parity check — partial fix shipped (~70%)
The cascade's three failure surfaces now produce typed, actionable errors instead of opaque chained failures. Merged to main:
- #3199 — classifies empty-response / 4xx / vision chat errors with actionable copy.
- #3211 — actionable error for completion-only model 404 plus an unmistakable
run_codefailure. - #3121 — surfaces an actionable "no credits / Managed route failed" error instead of a silent fall-through.
Between them, the Plan → Run Code → Tools sequence should no longer cascade silently when the trigger is a missing-credits or completion-only-model condition.
What's remaining: this work targets detection + messaging for the known triggers. We need the original reporter to re-test on their setup and confirm the cascade no longer reproduces (and, if it still does, capture which step fails first) — no further code change is identified beyond that verification. Keeping open until confirmed.
The repeated Run Code and Tools Agent failures make me think the real problem is less 'one broken step' and more 'no clean terminal state once the first failure happens.' The pattern that usually saves the most money is forcing the chain to answer two things before another retry: what changed, and what verifier passed. If both answers are fuzzy, it is usually better to stop the run and surface one useful receipt than let the cascade look busy for another ten minutes.