{"version":"2.1.330","anchor":"bypass-permissions-switch-back-handshake-and-log-host-events","canonical_anchor":"bypass-permissions-switch-back-handshake-and-log-host-events","heading":"Bypass-permissions sessions can start in auto mode, with a way to switch back","tier":"soon","area":"Permissions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/bypass-permissions-switch-back-handshake-and-log-host-events","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Bypass-permissions sessions can start in auto mode, with a way to switch back\n\nNew groundwork lets host apps start a bypass-permissions session in auto mode, offer a switch back, and ask the user why they want bypass\n\n**What**\n\nClaude Code has permission modes that decide how often it stops to ask before acting. `bypassPermissions` skips those checks, and auto mode is a more guarded alternative. New code lets a session that was launched in `bypassPermissions` start in auto mode instead, then switch back if the user asks. It shows the notice \"Started in auto mode instead of bypass permissions\" along with the shift+tab key to switch back. This is reachable only when a host app, a program that embeds Claude Code such as the VS Code extension or an SDK integration, sends the matching fields or requests.\n\n- `offersBypassSwitchBack` and `keepsBypassHeld` are two new internal true\/false fields in the SDK setup message (the first message a host sends). They let the VS Code extension start a `bypassPermissions` launch in auto mode, with a `bypass_auto_switch` response so it can switch back. Both are honoured only on the first setup message, only from the process that owns Claude Code's input, and only in the VS Code extension.\n\n- The VS Code panel has a switch-back dialog with choices such as `bypass_now` and `bypass_always`.\n\n- `holdsBypass` is now included in the permission-rules payload sent when opening the agents view. It is set when `bypassAutoSwitch.isHeld` is true, and the payload is now built even when there are no allow, deny or added-directory rules.\n\n- `bypassReason` is a new prompt case and feedback survey (`bypassReasonSurvey`) that asks the user for a reason for using bypass.\n\n- `log_host_events` is a new control-request type in the SDK protocol. The list of supported features currently marks it as not offered.\n\n- A separate helper removes `CLAUDE_CHROME_PERMISSION_MODE` from a configuration's environment settings.\n\n**Why**\n\nIn practice, a host app could open a session in auto mode even when bypass was requested, keep track of whether bypass is being held, and ask the user why before switching back. Ordinary terminal users only meet this if their host app turns it on.\n\n- Flag `tengu_glittery_puppy`: Not enough to say (read for one account on one subscription tier against v2.1.330; this account: no value returned, anonymous baseline: no value returned, compiled default: not a boolean we can read) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Permissions\n- Tier: Nothing to try yet\n- Useful: 4\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}