Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.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.

Group of 3 Use it now Notable Improvements
JSON All of v2.1.261
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
InternalsArea: what it touches
ImprovementsKind: in v2.1.261,
What probably matters to youSection of the release

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
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