{"version":"2.1.271","anchor":"new-forpromptshellcommand-context-forces-auto-mode-down-to-d","canonical_anchor":"new-forpromptshellcommand-context-forces-auto-mode-down-to-d","heading":"New forPromptShellCommand context forces auto mode down to default","tier":"internal","area":"Auto Mode","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271\/e\/new-forpromptshellcommand-context-forces-auto-mode-down-to-d","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271","markdown":"### New forPromptShellCommand context forces auto mode down to default\n\nShell commands run as part of a prompt now force permission mode down from auto to default\n\n**What**\n\nA new `forPromptShellCommand` flag marks when a shell command is being run as part of a prompt rather than a direct user action. When this flag is true, Claude Code now rewrites the effective permission mode from `auto` to `default`, and records the original mode as `modeBeforeRewrite`.\n\n**Why**\n\nThis stops prompt-triggered shell commands from silently running in the more permissive `auto` mode, requiring the normal approval flow instead.\n\n- Area: Auto Mode\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5"}