claude-code - 💡(How to fix) Fix Web app: connection drops and auth failures during long-running delegated tasks [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#60704Fetched 2026-05-20 03:51:40
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

Error Message

This happens during normal agent delegation (e.g. multi-step tasks using Using delegate...), not from any user-side network issue. The delegated work may still complete server-side, but the user loses visibility and must reload — at which point the auth error can block re-entry entirely. 3. Wait — within a few minutes, the error cascade above begins

RAW_BUFFERClick to expand / collapse

Problem

When using the Claude Code web app for tasks that involve long-running delegated sub-agents, the connection degrades through a predictable failure cascade:

  1. "Unexpected response from the server. Try reloading the page." — first sign of trouble
  2. "Live connection lost. Replies will still arrive, but reload the page if updates stop appearing." — websocket/SSE drops
  3. "Unauthorized. Authenticate via POST /auth or provide the x-web-bootstrap-secret header." — session expires entirely

This happens during normal agent delegation (e.g. multi-step tasks using Using delegate...), not from any user-side network issue. The delegated work may still complete server-side, but the user loses visibility and must reload — at which point the auth error can block re-entry entirely.

Impact

  • Long-running tasks are the web app's most valuable use case (kick off work, monitor progress). Connection drops make this workflow unreliable.
  • Users can't tell whether the task is still running, failed, or completed.
  • The auth expiration during an active session is especially frustrating — the user didn't leave, the server just took too long.

Expected behavior

  • The web app should maintain a stable connection for the duration of a delegated task, even if it takes several minutes.
  • If the connection does drop, automatic reconnection should restore the message stream without losing context or requiring manual reload.
  • Auth tokens should not expire while a task is actively running in the session.

Reproduction

  1. Open Claude Code web app
  2. Start a task that triggers multiple sequential delegate calls (e.g. processing a batch of items one-by-one)
  3. Wait — within a few minutes, the error cascade above begins

Acceptance criteria

  • Web app maintains a stable connection during delegated tasks lasting at least 15 minutes
  • If connection drops, automatic reconnection resumes the message stream without user intervention
  • Auth tokens are refreshed transparently while a session has an active running task
  • If reconnection fails, the UI clearly indicates the task's server-side status (still running / completed / failed) rather than leaving the user guessing

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

  • The web app should maintain a stable connection for the duration of a delegated task, even if it takes several minutes.
  • If the connection does drop, automatic reconnection should restore the message stream without losing context or requiring manual reload.
  • Auth tokens should not expire while a task is actively running in the session.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Web app: connection drops and auth failures during long-running delegated tasks [1 participants]