{"version":"2.1.305","anchor":"model-switch-pending-error-gets-an-error-code","canonical_anchor":"model-switch-pending-error-gets-an-error-code","heading":"A pending model switch error now carries an error code","tier":"notice","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.305\/e\/model-switch-pending-error-gets-an-error-code","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.305","markdown":"### A pending model switch error now carries an error code\n\nThe error returned when a model switch is still pending now includes `error_code: \"verdict_pending\"`\n\n**What**\n\nWhen a request to switch models cannot finish yet because a decision is still pending, the error Claude Code returns now includes `error_code: \"verdict_pending\"`. Before, it held only the error type and its message text.\n\n**Why**\n\nPrograms that drive Claude Code through the SDK (the developer kit for controlling Claude Code from code) can now recognise this case by its code instead of reading the message text.\n\n- Area: SDK\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}