claude/for
Search
Subscribe
Claude Code

“The response stopped arriving” in Claude Code: what to do

Claude Code cut off a reply that went silent for 3 to 5 minutes. Read what's left, type continue, then check your VPN, proxy or network if it repeats.

"API Error: The response stopped arriving. The response above may be incomplete." means Claude Code's connection to the model stayed open but stopped sending data, so a built-in watchdog cut it off after a few minutes of silence. Most public reports trace it to the network path between the machine and Anthropic, not to an outage, and the fix is to read what survived and type continue.

claude-for is an independent guide, not affiliated with Anthropic. Everything below was checked on December 5, 2026 against Anthropic's Claude Code error reference, its network configuration page, the CHANGELOG and public GitHub reports.

TL;DR. Don't paste your prompt again. Read the partial reply, check files Claude was editing, then type continue. If it repeats, update Claude Code and try another network before touching the timeouts below.

The exact message and its look-alikes

Claude Code prints the whole line at the end of the cut-off reply:

API Error: The response stopped arriving. The response above may be incomplete.

The string "The response stopped arriving. The response above may be incomplete." is present in Claude Code 2.1.337, checked December 5, 2026. On claude.ai and in the Claude apps, cut-off replies read differently: see our response incomplete guide.

The messages around it:

  • "API Error: Response stalled mid-stream. The response above may be incomplete." is the same failure under its old name. The error reference says the wording changed in version 2.1.227, released August 10, 2026. The CHANGELOG never mentions the rename. #74672 quotes the old line.
  • "Waiting for API response · will retry in … · check your network" usually comes first. It appears after 20 seconds without data and counts down to the abort.
  • "Connection lost mid-response" means the connection dropped outright instead of going quiet.
  • "No response from API" means the reply never started: no response headers arrived.
  • "Unable to connect to API" means the connection never opened. In #105804, on version 2.1.312, a persistent "Unable to Connect" came with this notice, which points at the network.

Why Claude Code ends the reply

Claude Code runs timers that abort a silent stream, so a dead connection fails instead of hanging. The byte-level watchdog fires after 180 seconds without a single byte, keep-alive pings included, on the direct Anthropic API, and after 300 seconds through a custom ANTHROPIC_BASE_URL gateway. An event-level watchdog, on every provider, fires after 300 seconds without a parsed response event.

This notice means the stall hit after Claude had finished a block of text or a tool call, so Claude Code does not resend the request. It keeps the completed output, shows this notice, and carries on from any tool calls Claude had finished.

What the bug reports have in common

A GitHub search on December 5, 2026 finds 21 Claude Code issues quoting "The response stopped arriving" (14 open, two opened in the past 30 days), and 27 matching the old wording. None of the 13 we read has a reply from Anthropic staff.

  • Sudden bursts. #90005 counted 33 in one day on Windows, after zero on any earlier day. #103058 counted 83 on macOS, among 291 API errors in one week, most of them on October 16 and 17.
  • Many parallel connections behind NAT. In #108016, a packet capture tied all 7 captured stalls to a reused TCP port, against 0 of 1,030 connections without one. The error came after about 172 seconds.
  • Events on the machine. Toggling a macOS content filter broke every open connection in #97593. On Linux, a suspend can show up as an idle timeout instead of the "went to sleep" variant, per #108243.
  • Proxies and gateways. The environment variable reference says the 5-minute floor on CLAUDE_STREAM_IDLE_TIMEOUT_MS exists "to absorb extended thinking pauses and proxy buffering". Our inference: a proxy that holds chunks back longer than the watchdog allows will end replies this way. Before 2.1.222, gateways triggered it even while keep-alive pings arrived.

The Claude moves worth stealing, by email

Workflows tested on real jobs, sent only when they are worth it. Free.

How to fix it

now

Read what survived

Claude Code keeps every block Claude completed. Only the interrupted last block is dropped, so the final sentences or the last tool call may be missing.

next

Type continue

This is Anthropic's documented fix: Claude picks up from its last completed block. There is no need to paste your prompt again.

next

Check your files

Tool calls Claude finished did run. Look at git status before asking for the same edit twice.

next

Closed the session? Resume it

Run claude --continue in the same folder for the latest session, or claude --resume, or /resume inside Claude Code, to pick one from the list.

next

Update Claude Code

Run claude update. Fixes to stall handling landed in 2.1.222, 2.1.246, 2.1.257 and 2.1.328.

next

Try another network for ten minutes

Turn the VPN off or switch to a phone hotspot. If the notice stops, your network path is the cause.

In a script, run claude -p "continue" --continue, or pass --resume with the session ID, per Anthropic's headless mode page. Closed sessions stay in the /resume picker for 30 days by default; our transcript guide shows how to keep them longer.

The settings that control the timeout

VariableWhat it doesWhen to use it
CLAUDE_STREAM_IDLE_TIMEOUT_MSSets both watchdogs. Values under 300000 (5 minutes) are raised to 5 minutes; the byte watchdog caps at 30 minutesLong thinking pauses or a buffering proxy trip it on a healthy connection
CLAUDE_BYTE_STREAM_IDLE_TIMEOUT_MSByte watchdog only, 10 seconds to 30 minutes, version 2.1.210 or laterYou want a flaky link to fail sooner
CLAUDE_ENABLE_STREAM_WATCHDOG, CLAUDE_ENABLE_BYTE_WATCHDOG0 turns each watchdog offRarely: a dead connection can then wait much longer
API_TIMEOUT_MSLimits only the wait for response headersNot for this message

All four come from the environment variable reference. Set them in your shell or in the env block of your settings file. One reporter in #88900 set CLAUDE_BYTE_STREAM_IDLE_TIMEOUT_MS=30000: stalls ended sooner, but the turn still ended with this notice.

Before 2.1.328 (November 18, 2026), CLAUDE_STREAM_IDLE_TIMEOUT_MS could not lengthen the 5-minute limit on gateways and cloud providers, per the CHANGELOG. If a proxy cuts compressed replies short, CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION is a separate fix.

Automatic retries, and why this one waits for you

Per the error reference, Claude Code retries a stalled stream once, and most other transient failures up to 10 times, but only until Claude completes some text or a tool call. After that, an interactive session waits for you. Non-interactive runs (-p, the Agent SDK, cloud sessions) continue a cut-off text reply on their own since 2.1.246, and subagents since 2.1.257.

Built an auto-continue hook? These turns fire StopFailure, not Stop, per #87972, and the hooks reference says StopFailure output is ignored, so the hook cannot resume them.

When to stop and wait

Check the Claude Code and Claude API rows on status.claude.com. If the notice appears on two different networks, or colleagues see it at the same time, the problem is upstream and waiting is the fix. A green page doesn't clear Anthropic either: the status page's incident history lists nothing between October 8 and 20, 2026, the window of the #103058 burst.

If it keeps happening with no incident posted, run /feedback so Anthropic gets your session details. For a wider list of Claude errors, see our Claude not working guide.

The honest limits

Anthropic documents what the notice means and which timer fires, but not why a stream goes quiet. The message carries no request ID to tell your network from Anthropic's, and a comment on #90005 asks for one. The causes above come from user reports and packet captures, none confirmed by Anthropic. We have not reproduced the message; the version check reads the installed binary.

Questions people ask

What does "The response stopped arriving" mean in Claude Code?

The connection to the model stayed open but sent nothing for minutes, 180 seconds by default on the direct Anthropic API, so Claude Code's watchdog aborted it. Claude had already produced part of the reply, which stays on screen. Type continue to resume.

Is "The response stopped arriving" my network or Anthropic?

Usually the path in between. Public reports trace bursts to NAT, security filters, sleep and many parallel agents. If it also fails on a different network, or status.claude.com shows a Claude Code or API incident, the cause is upstream and waiting is the fix.

Does raising API_TIMEOUT_MS fix it?

No. API_TIMEOUT_MS only limits the wait for response headers, and this failure happens after the reply has started. The stall timers are CLAUDE_STREAM_IDLE_TIMEOUT_MS and CLAUDE_BYTE_STREAM_IDLE_TIMEOUT_MS, and raising them only helps if data was going to resume.

Why doesn't Claude Code retry automatically?

Claude had already finished part of the reply, possibly tool calls. Re-sending could run the same commands twice, so Claude Code keeps what arrived instead. Non-interactive runs and subagents continue on their own since versions 2.1.246 and 2.1.257.

If Anthropic changes how Claude Code recovers from stalled replies, the newsletter will say so in one line.

The Claude moves worth stealing, by email

Workflows tested on real jobs, sent only when they are worth it. Free.