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.228 ·

SDK client gains fetch middleware and wider streaming event coverage

The bundled API client can wrap network calls and understands more streaming event types.

Under the hood New Features
JSON All of v2.1.228
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SDKArea: what it touches
New FeaturesKind: in v2.1.228,
New FeaturesSection of the release
What

The bundled API client can now wrap its own network calls in middleware, and its streaming event filter passes through many more event types. Middleware that reads the response body is rejected with an error telling you to clone it or return a replacement.

Details
  • Middleware runs around fetch and receives a parse context.
  • The rejection message is exact: middleware must use response.clone() to inspect the body, or return new Response(body, response) to consume and replace it.
  • Newly forwarded streaming events include session.updated, outcome-evaluation spans, agent thread messages, session thread status transitions, event_start/event_delta and system.message.
  • New client namespaces: deployments, deployment runs, webhooks, dreams and tunnels.
Evidence

middleware consumed the response body; use response.clone() to inspect it, or return new Response(body, response) to consume and replace it

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.228 →

Feedback