Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.251 Home All releases olderv2.1.250
Claude Code v2.1.251

SDK set_model waits for a busy session instead of failing

Use it now
Useful3 Signal2
SDK

SDK set_model now waits for a busy session and applies once idle instead of failing.

set_model
What

The SDK set_model control request is now asynchronous. If the session is busy or has queued work, the model change is deferred and applied once the session goes idle rather than being forced through. Any notices the change produces are forwarded back to the caller, and a thrown error now replies set_model failed instead of leaving the request hanging.

Details
  • Applies to every set_model control request; there is no flag.
Evidence

`if (u0(e) || Ek.of(e).pending > 0) lt(() => ng(e, O));

else await O();`

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

See this entry in the whole of v2.1.251 →