{"version":"2.1.332","anchor":"set-permission-mode-success-payload-schema-and-error-message","canonical_anchor":"set-permission-mode-success-payload-schema-and-error-message","heading":"Permission mode changes now report back the mode in effect","tier":"internal","area":"Agents","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/set-permission-mode-success-payload-schema-and-error-message","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### Permission mode changes now report back the mode in effect\n\nThe answer to a set_permission_mode request can now name the mode in effect, and a failed sign-out has a new error message\n\n**What**\n\nA permission mode controls how much Claude Code may do without asking you first. When a program asks Claude Code to change it with `set_permission_mode`, the successful answer can now include the mode. `claude -p` fills it in with the mode actually in effect.\n\nA new error message also appears when Claude Code cannot remove an expired login: \"Couldn't remove your expired login, so you're not signed in. Try again.\"\n\n**Why**\n\nPrograms that run Claude Code through its SDK can now read back which permission mode was really applied instead of assuming the request worked as sent.\n\n- Area: Agents\n- Names: `set_permission_mode`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}