Claude Code headless sessions on third-party providers start in default permission mode instead of auto
From Claude Code 2.1.302, claude -p and Agent SDK sessions with no permission mode set start in default mode, not auto, on third-party providers when telemetry is off or on a fresh install. Pass --permission-mode auto to keep auto mode.
What does this mean for me?
Action needed
Engineering leadership
Cost, risk, timeline, team impact Action neededUnattended Claude Code jobs on Bedrock, Vertex, Foundry or a gateway that never set a permission mode can stop doing work after upgrading to 2.1.302. Have owners of those pipelines set the mode explicitly before rolling the upgrade out.
Engineer
What to change, what breaks, what to test Action neededIn claude -p and Agent SDK runs on third-party providers, pass --permission-mode auto (or the SDK's permission mode option) explicitly; with no mode set, 2.1.302 starts in default mode where tool calls needing approval are not auto-approved.
General consumer
Using the Claude apps, not the API No impactNothing to do. This affects scripted Claude Code runs on cloud providers, not the Claude apps.
Claude Code 2.1.302 changes the starting permission mode for non-interactive sessions on third-party providers. claude -p and Agent SDK sessions that set no permission mode now start in default mode on third-party providers when telemetry is off, or on a fresh install. Passing --permission-mode auto keeps auto mode.
This narrows the auto-mode default recorded on September 28, 2026. A headless script or SDK integration on a third-party provider that relied on auto mode without setting it explicitly will now run under default permissions, where tool calls that need approval are not auto-approved, so an unattended run can stop doing work it did before. The fix is to set the permission mode explicitly.
The changelog line says “on third-party providers, with telemetry off or on a fresh install”; it does not define third-party providers or say whether both conditions or either one apply. Read it as covering Bedrock, Vertex, Foundry and gateway setups, and set the mode explicitly in any of them.
The changelog carries no release dates. This entry is dated October 17, 2026 because 2.1.302 appeared between the previous run’s fetch on October 16 and this run’s.
Topics: Coding tools