Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.261 ·

Improved diagnostics and tuning for stream first-byte timeouts

Stream-timeout errors now suggest raising API_TIMEOUT_MS or CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS.

TierUse it nowhow much it should matter to you
Useful3my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaInternalswhat it touches
KindImprovementsin v2.1.261,
Group of 3 Use it now Notable

Stream-timeout errors now suggest raising API_TIMEOUT_MS or CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS.

A new environment variable, CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS, controls the timeout for the first byte of a streamed API response; it is now recognized and passed through by the CLI's allowed-env-var list, and stream-start timeout logic was simplified to read it directly.

The retry-status UI in the chat now special-cases requests where the API gave no response at all, showing 'No response from the API after {duration}' with either 'retrying once, waiting up to {t}' (final attempt) or 'retrying, waiting up to {t} · attempt X/Y', plus a hint about buffering proxies and the CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS setting.

When a request fails with a StreamNoResponseError (no first byte received in time), the error message now reports how long Claude Code waited, including whether it escalated to a retry window, and suggests raising API_TIMEOUT_MS or CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS if a proxy or gateway is holding responses.

Read from
Names in the bundleAPI_TIMEOUT_MSCLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS
What the documentation says
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS, on Error reference. | [`CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS`](/docs/en/env-vars) | unset | Deadline in milliseconds for the first response byte of a streaming request. Requires Claude Code v2.1.242 or later. For how Claude Code picks the deadline when this is… errors see the edit
Confirmed since Anthropic's documentation has since written up API_TIMEOUT_MS, on Error reference. | [`API_TIMEOUT_MS`](/docs/en/env-vars) | 600000 | Per-request timeout in milliseconds. Raise it for slow networks or proxies. It also caps how long Claude Code waits for response headers, described in [No response from API](#no-response-f… errors see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up API_TIMEOUT_MS, on Error reference.
Anthropic's release notes agreeImproved handling when the API sends no response headers: the retry now waits up to API_TIMEOUT_MS (10 minutes by default) instead of…

See this entry in the whole of v2.1.261 →

Feedback