{"version":"2.1.281","anchor":"sdk-permission-responses-can-switch-the-session-mode","canonical_anchor":"sdk-permission-responses-can-switch-the-session-mode","heading":"SDK permission responses can switch the session mode","tier":"use","area":"SDK","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/sdk-permission-responses-can-switch-the-session-mode","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### SDK permission responses can switch the session mode\n\nPrograms using the SDK can now change the session's permission mode when they allow a tool\n\n**What**\n\nThe SDK lets another program run Claude Code and answer its permission questions. When that program allows a tool and includes an `updatedPermissions` entry of type `setMode`, Claude Code now switches to the mode named there. It accepts \"default\" or \"acceptEdits\".\n\n**Why**\n\nA program built on the SDK can now approve a request and change how later requests are handled in the same answer, for example moving to `acceptEdits` so file edits stop needing approval each time.\n\n- Area: SDK\n- Names: `updatedPermissions`, `setMode`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 2\/5"}