{"version":"2.1.331","anchor":"sdk-control-request-prompt-draft-activity-added-client-me","canonical_anchor":"sdk-control-request-prompt-draft-activity-added-client-me","heading":"New SDK draft-activity request, and clearer refusal codes for cloud sessions","tier":"notice","area":"SDK","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/sdk-control-request-prompt-draft-activity-added-client-me","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### New SDK draft-activity request, and clearer refusal codes for cloud sessions\n\nSDK hosts gain `prompt_draft_activity` to say the user is typing, and requests refused in cloud sessions or connections get their own error codes\n\n**What**\n\nPrograms 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.\n\n- 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.\n\n- 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.\n\n- 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`.\n\n- New error code `invalid_effort_level` for `update_settings`, new codes for `end_session` with reload, and new wording for `stale_root_id`.\n\n**Why**\n\nA 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.\n\n- Area: SDK\n- Names: `prompt_draft_activity`, `notePromptDraftActivity`\n- Tier: You'll notice\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}