Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.251 ·

Switch confirmation can show a hook's own reason

Model and effort switch dialogs can show that a PreModelSwitch hook asked you to confirm.

You'll notice New Features
JSON All of v2.1.251
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
HooksArea: what it touches
New FeaturesKind: in v2.1.251,
New FeaturesSection of the release
What

The "Switch model?" and "Change effort level?" dialogs now show a hook-supplied message, "A PreModelSwitch hook asked you to confirm", in place of the usual prompt-caching warning.

Details
  • Only when a hook supplies a reason; otherwise the caching-warning text is shown as before.
Evidence

A PreModelSwitch hook asked you to confirm

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Read from
Names in the bundlePreModelSwitch
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up PreModelSwitch, on Hooks reference. | PreModelSwitch | `hookSpecificOutput` or top-level `decision` | `permissionDecision` (allow/deny/ask), `permissionDecisionReason`. `decision: "block"` also [cancels the switch](#premodelswitch-decision-control) | hooks see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up PreModelSwitch, on Hooks reference.
Anthropic's release notes agreeAdded PreModelSwitch and PostModelSwitch hook events (block, confirm, or annotate a model switch); SessionStart resume hooks now receive…

See this entry in the whole of v2.1.251 →

Feedback