Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.261 ·

Improved diagnostics and tuning for stream first-byte timeouts

A 'no response from API' retry message now appears separately from rate-limit retries, with a tunable timeout hint.

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
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS, on Error reference.

See this entry in the whole of v2.1.261 →

Feedback