New set_message_waiting and prompt_draft_activity control requests
Host programs can send set_message_waiting and prompt_draft_activity requests, a useAnthropicGh option is passed through, and turns that do not go idle are closed
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
SDKArea: what it touches
Internal ChangesKind: in v2.1.326,
Internal ChangesSection of the release
What
Control requests are messages that a host program, such as a desktop app, sends to Claude Code while a session is running. Two new ones are accepted, both marked internal:
set_message_waiting lets the end of a turn skip waiting for the model call that writes the after-turn summary. Its value must be true or false; otherwise the error is "Invalid set_message_waiting: waiting must be true or false".
prompt_draft_activity signals that a person is typing.
A useAnthropicGh option is now passed through. The session also calls closeTurn() when a turn ends without the session going idle.
Why
These give host apps such as Desktop ways to keep a session responsive. A turn can finish without waiting on the summary, and Claude Code can be told that someone is still writing.