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

SDK string prompt is written only after initialize

When the SDK is given a plain text prompt, it now waits until setup has finished before sending it, and a failed send stops the query

You'll notice Bug Fixes
JSON All of v2.1.281
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SDKArea: what it touches
Bug FixesKind: in v2.1.281,
Bug FixesSection of the release
What

An app using the SDK can start a query by giving Claude Code a plain piece of text as the prompt. Before this change, that message went straight onto the transport, which is the connection between the SDK and the Claude Code process. It is now sent with writeAfterInitialize(...), so it goes out only after the initialize step (the opening handshake between the two sides) has finished. If sending it fails, the query is aborted.

Why

The prompt is no longer sent before Claude Code has finished setting up to receive it. A failure to deliver it now ends the query outright.

See this entry in the whole of v2.1.281 →

Feedback