What probably matters to youSection of the release
Unclear What leaves the server unable to confirm a model is not clear.
What
Programs that drive Claude Code through the SDK (the software development kit for building on top of it) can ask it to switch models with set_model. If the server cannot confirm the requested model, Claude Code now applies it anyway and adds unconfirmed: true to its reply. Before, a failed server check rejected the switch.
The list of error codes also gains workspace_diff_pending, used by get_workspace_diff.
Why
A program using the SDK can now tell when a model switch went through without the server confirming it, rather than having the switch rejected.
Read from
Names in the bundleset_model
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.
Added sinceA small documentation edit on Agent SDK reference - Python touched a line naming set_model after this was published.| `set_model(model)` | Change the model for the current session. Pass `None` to reset to [Claude Code's default model](/docs/en/model-config). A session in `auto` mode [changes to `default` mode](/docs/en/agent-sdk/permissions#auto-mode-au…agent-sdk/pythonsee the edit
Confirmed sinceAnthropic's documentation has since written up set_model, on Configure permissions.If you switch a session that's in auto mode to a model that auto mode doesn't support, using [`set_model()`](/docs/en/agent-sdk/python#claudesdkclient), [`setModel()`](/docs/en/agent-sdk/typescript#query-object), or [`applyFlagSettings()`]…agent-sdk/permissionssee the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhat leaves the server unable to confirm a model is not clear.
Anthropic's documentation agreesAnthropic's documentation has since written up set_model, on Configure permissions.