Follow Discord
Sweep 25 Sep 2026 · 19:33Z Build v2.1.283 504 read Stable v2.1.274 Latest v2.1.283 Next v2.1.283 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.281 ·

SDK client now holds control requests and MCP messages until initialize has been written

The SDK client now waits for initialize to be sent before sending any other request or MCP message

Entry
JSON All of v2.1.281
EntryKind: in v2.1.281,
ChangesSection of the release
What

The SDK is the kit for driving Claude Code from your own program. Its Query class opens with an initialize message, and it now holds everything else until that message has been written:

  • request() waits for initialize, and fails at once with "Query closed before response received" once the query has been cleaned up
  • control_cancel_request is sent only if the original request actually went out
  • streamInput waits for initialize
  • messages from SDK MCP servers (tool providers run inside your program) go through writeAfterInitialize
  • late replies to a manifest capture are dropped
  • removing a server rejects its pending requests
Why

Programs built on the SDK no longer send messages out of order at startup. They also no longer wait forever for replies after a query has closed or a server has been removed.

See this entry in the whole of v2.1.281 →

Feedback