Repository navigation
Description
What happened
When the Claude provider hit a transient authentication error during an upstream incident, each failed turn and delegated task showed the raw error as if it were ordinary content, often two or three times over. It read as glitchy output, not as a deliberate "the provider is having trouble, try again" state.
Diagnosis
From one thread's activity on 2026-11-13, at 09:47, 10:17 and 10:19 UTC. Every failed turn produced all of these at once:
- An assistant message whose whole text is the raw error,
Failed to authenticate. API Error: 403 Attention Required! | Cloudflare, rendered as if the agent had said it. - A separate "Provider error" item with the same text.
- For a failed
delegate_task, a subagent card marked failed whose body repeats the error, then "Last assistant message before the run failed:" and the same error a third time. - For a failed native Claude subagent, a card reading
Agent terminated early due to an API error: Failed to authenticate. API Error: 403 …(error typeauthentication_failed, HTTP 403).
Other problems:
- The text is not user-facing. "Attention Required! | Cloudflare" is the title of a Cloudflare challenge page passed through untouched, and "Failed to authenticate" suggests the user's credentials are bad when the cause was a service-side incident (Claude status).
- Nothing says the error is transient or that retrying is the fix. The user typed "continue" and "try again" by hand.
- The failed delegated-task card stays "failed" even though that task later completed (tracked separately). The thread ends up with a red "failed" card and a green "completed" card with the same title, and nothing connects them.
Expected: one clearly styled error per failure, not echoed as an assistant message, using the provider's error type (here authentication_failed, HTTP 403) to say what happened in plain words and whether a retry is likely to help.
Steps to reproduce
Hard to trigger on demand, since it needs a provider auth or edge failure. Observed with the Claude provider during the incident above:
- Start a turn, or a
delegate_taskto a Claude model, while the provider returns a 403 at authentication. - The thread shows the error as an assistant message, as a provider-error item and, for delegated tasks, inside the failed card.
Version
0.1.10-nightly.20261113.4616 (desktop app, local server)
Environment
macOS 26.7.1 arm64, Node v26.13.0, Claude Code 2.1.311
Evidence
One failure in the thread: the raw error appears as the agent's reply, then again directly below it as "Provider error".
assistant_message "Failed to authenticate. API Error: 403 Attention Required! | Cloudflare"
error (Provider error) "Failed to authenticate. API Error: 403 Attention Required! | Cloudflare"
subagent (failed) "Failed to authenticate. API Error: 403 Attention Required! | Cloudflare\n\nLast assistant message before the run failed:\n\nFailed to authenticate. API Er…"
subagent (failed) "Error: Agent terminated early due to an API error: Failed to authenticate. API Error: 403 Attention Required! | Cloudflare (error type authentication_failed, HTTP 403, …)"Related issues
- delegate_task reports a transient provider error as failed while the child keeps running and later completes #36147, the delegated task reported failed here kept running and completed
🤖 Claude Opus 5.5

Activity
juliusmarminge commentedon Nov 13, 2026
This is the same problem as #24171, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.
joshka commentedon Nov 13, 2026
yep same - thanks :)