{"version":"2.1.319","anchor":"new-sdk-control-request-set-has-subscribers","canonical_anchor":"new-sdk-control-request-set-has-subscribers","heading":"SDK hosts can tell Claude Code whether anything is listening","tier":"use","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319\/e\/new-sdk-control-request-set-has-subscribers","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319","markdown":"### SDK hosts can tell Claude Code whether anything is listening\n\nClaude Code accepts a new `set_has_subscribers` control request that takes true, false or null\n\n**What**\n\nPrograms that run Claude Code through the SDK send it control requests, which are instructions about how a session should behave. Claude Code now accepts one called `set_has_subscribers`. Its `has_subscribers` value must be true, false or null, and any other value is rejected with an error.\n\n**Why**\n\nThis gives a host program a new way to tell Claude Code whether anything is listening to its output.\n\n- Area: SDK\n- Names: `set_has_subscribers`, `has_subscribers`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}