Follow Discord
Sweep 25 Sep 2026 · 19:33Z Build v2.1.283 504 read Stable v2.1.274 Latest v2.1.283 Next v2.1.283 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.281 ·

set_model validation errors now carry code invalid_request

Validation errors from the set_model control request now include code "invalid_request" so SDK apps can check a code rather than the message

Group of 2 You'll notice Improvements
JSON All of v2.1.281
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
SDKArea: what it touches
ImprovementsKind: in v2.1.281,
ImprovementsSection of the release

What

set_model is a control request, a message an app built on the Claude Code SDK sends to change the model during a session. When it rejects bad input, its error now includes code: "invalid_request" next to the existing error message. This covers:

  • a model value that is not a string ("set_model: model must be a string")
  • an empty system_prompt ("set_model: system_prompt must be a non-empty string when present")

Before, these errors had only ok and error.

Why

Apps that talk to Claude Code can check a fixed code to spot bad input, instead of matching the wording of the error message, which may change.

Read from
Names in the bundleset_model

See this entry in the whole of v2.1.281 →

Feedback