{"version":"2.1.290","anchor":"background-sessions-ignore-allow-dangerously-skip-permissi","canonical_anchor":"background-sessions-ignore-allow-dangerously-skip-permissi","heading":"Background sessions ignore --allow-dangerously-skip-permissions without recorded consent","tier":"notice","area":"Permissions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.290\/e\/background-sessions-ignore-allow-dangerously-skip-permissi","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.290","markdown":"### Background sessions ignore `--allow-dangerously-skip-permissions` without recorded consent\n\nBackground sessions now ignore `--allow-dangerously-skip-permissions` unless bypass consent is in your user or policy settings\n\n**What**\n\n`--allow-dangerously-skip-permissions` adds `bypassPermissions`, the mode that skips permission prompts, to the modes you can switch to. In a background session, Claude Code now ignores this flag unless your consent to bypass mode is on record. Interactive sessions are not affected. The flag is ignored when all of these hold:\n\n- the session is a background worker (`CLAUDE_CODE_SESSION_KIND=bg`), such as one the agents view dispatches\n\n- it did not start in `bypassPermissions` mode\n\n- bypass mode is not disabled by policy and not blocked by the host\n\n- no consent is on record\n\nConsent means `\"skipDangerousModePermissionPrompt\": true` in your user settings (`~\/.claude\/settings.json`) or in managed policy settings. Accepting the bypass-mode disclaimer writes the same key. The same key in `.claude\/settings.local.json` or passed with `--settings` does not count here, even though it still skips the disclaimer.\n\nWhen the flag is ignored you see a warning starting \"--allow-dangerously-skip-permissions ignored:\" that names the fix. Before, the flag always made bypass mode available.\n\n**Why**\n\nA background session runs with nobody watching, so bypass mode there now needs consent from your own user settings or from policy, not from a project's files or a launch flag.\n\n- Area: Permissions\n- Names: `--allow-dangerously-skip-permissions`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}