Claude Code -p and Agent SDK sessions on third-party providers start in default mode, not auto
From Claude Code 2.1.302, claude -p and Agent SDK sessions that set no permission mode start in default mode on third-party providers when telemetry is off or on a fresh install. Unattended runs that relied on auto mode must pass --permission-mode auto.
What does this mean for me?
Action needed
Engineering leadership
Cost, risk, timeline, team impact Action neededUnattended Claude Code jobs on Bedrock, Vertex or other third-party providers can start refusing tool calls after upgrading to 2.1.302. Have teams set the permission mode explicitly in CI and SDK automation before rolling the upgrade out.
Engineer
What to change, what breaks, what to test Action neededIf you run claude -p or the Agent SDK against a third-party provider without a permission mode, pass --permission-mode auto (or the SDK's permission mode option) explicitly. From 2.1.302 these sessions start in default mode when telemetry is off or on a fresh install.
General consumer
Using the Claude apps, not the API No impactNothing to do. This affects scripted Claude Code and Agent SDK runs on third-party clouds, not the Claude apps.
Claude Code 2.1.302, released October 16, 2026, changes the starting permission mode for non-interactive sessions. claude -p and Agent SDK sessions that do not set a 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 September change that made Claude Code start sessions in auto mode when no permission mode is set. Scripts and SDK integrations running against a third-party provider such as Bedrock or Vertex that relied on that default without naming a mode now run under default permissions instead, so tool calls auto mode would have allowed can be refused or need approval in an unattended run.
The action is to set the permission mode explicitly in any headless or SDK invocation whose behaviour should not depend on provider, telemetry setting, or install state. The changelog states the condition as “with telemetry off or on a fresh install” and does not spell out how the two combine; confidence is medium on exactly which installs are affected.
Topics: Coding tools