Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.271 ·

New forPromptShellCommand context forces auto mode down to default

Shell commands run as part of a prompt now force permission mode down from auto to default

TierUnder the hoodhow much it should matter to you
Useful2my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaAuto Modewhat it touches
KindInternal Changesin v2.1.271,
Under the hood

Shell commands run as part of a prompt now force permission mode down from auto to default

What

A 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.

Why

This stops prompt-triggered shell commands from silently running in the more permissive auto mode, requiring the normal approval flow instead.

See this entry in the whole of v2.1.271 →