{"version":"2.1.327","anchor":"control-request-retry-and-new-error-codes","canonical_anchor":"control-request-retry-and-new-error-codes","heading":"SDK control requests are retried, and the init response reports more","tier":"notice","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/control-request-retry-and-new-error-codes","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### SDK control requests are retried, and the init response reports more\n\nFailed control requests are now retried, the init response reports applied settings and disallowed tools, and new error codes are documented\n\n**What**\n\nA control request is a message that a program driving Claude Code through the SDK (the developer kit for building on Claude Code) or a remote client uses to tell Claude Code to do something. When sending one fails, Claude Code now tries again, unless the failure was because the session is no longer active or was an HTTP error. Before, a failed send was not retried.\n\nOther changes for programs that talk to Claude Code this way:\n\n- The init response, sent when a session starts, now also reports `settings_applied` and `disallowed_tools_applied`. Before, it covered only hooks, plugins, managed settings and MCP servers.\n\n- The documented error codes now include `stale_root_id`, for reading a file with `diff_root`, and codes for comparison forks.\n\n- Passing a server made with `createSdkMcpServer()` in an agent's `mcpServers` is deprecated. Claude Code ignores it and shows a warning.\n\n**Why**\n\nPrograms built on the SDK and remote clients get control requests that survive a passing failure, and can confirm at startup which settings and tool restrictions actually took effect.\n\n- Area: SDK\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}