Skip to content

Transient provider errors show as raw, repeated text: an assistant message, an error item, and again inside failed task cards #36149

Closed as duplicate

Description

@joshka

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:

  1. 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.
  2. A separate "Provider error" item with the same text.
  3. 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.
  4. For a failed native Claude subagent, a card reading Agent terminated early due to an API error: Failed to authenticate. API Error: 403 … (error type authentication_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:

  1. Start a turn, or a delegate_task to a Claude model, while the provider returns a 403 at authentication.
  2. 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".

The 403 error shown as an assistant message and again as a 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

🤖 Claude Opus 5.5

Activity

  1. juliusmarminge commented on Nov 13, 2026

    @juliusmarminge
    Member

    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.

  2. joshka commented on Nov 13, 2026

    @joshka
    Author

    yep same - thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions