Follow Discord
Sweep 23 Nov 2026 · 19:13Z Build v2.1.331 548 read Stable v2.1.323 Latest v2.1.330 Next v2.1.331 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.331 ·

New SDK draft-activity request, and clearer refusal codes for cloud sessions

SDK hosts gain prompt_draft_activity to say the user is typing, and requests refused in cloud sessions or connections get their own error codes

Group of 3 You'll notice No documentation found New Features
JSON All of v2.1.331
You'll noticeTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
SDKArea: what it touches
New FeaturesKind: in v2.1.331,
What probably matters to youSection of the release

What

Programs that drive Claude Code through the SDK, such as IDE extensions, talk to it with control requests. This release adds one and gives refusals more precise error codes.

  • New request prompt_draft_activity, sent by the SDK method notePromptDraftActivity(). It tells a session that the user is typing a draft. Claude Code acknowledges it and, if no turn is running, either notes the typing or wakes the session, depending on its mode.
  • New error codes unavailable_in_cloud_session and unavailable_on_connection for requests that cannot be served in a cloud session or on the current connection. Before, only unsupported_request was listed for any request.
  • A table now rejects certain requests, including prompt_draft_activity, in cloud sessions with unavailable_in_cloud_session. The spot that does this no longer reads the remote switch tengu_serene_curry.
  • New error code invalid_effort_level for update_settings, new codes for end_session with reload, and new wording for stale_root_id.

Why

A host can now let a session start waking up while the user is still typing, and when a request is refused it can tell whether the reason is a cloud session, the connection, or a bad effort level.

Read from
Names in the bundleprompt_draft_activitynotePromptDraftActivity

See this entry in the whole of v2.1.331 →

Feedback