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.275 ·

SDK model switching gains hook-gated flow with gateway/plan-mode side effects

SDK-driven model switches now go through hook approval and can affect auto/plan permission modes

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

SDK-driven model switches now go through hook approval and can affect auto/plan permission modes

What

When the SDK (the programmatic interface used to drive Claude Code) triggers a model switch, the handler for it now validates the target model, can short-circuit early via a bridge-print check, and routes the change through a hook-approval step, unless the session has no hooks pending, before applying it. Hooks are user-configured scripts that can approve, block, or modify actions. After the switch, the handler adjusts tool-permission context for sessions in 'auto' or 'plan' permission mode: it can deny the switch (recorded as auto_gate_denied) or update plan-mode context as appropriate.

Why

This means a model switch requested via the SDK can now be intercepted by hooks and can be denied or adjusted based on the session's current permission mode, rather than always applying immediately.

See this entry in the whole of v2.1.275 →