Under the hood
Advisor-model API errors are now specifically recognized, including when unavailable for an organization
What
New helper functions now recognize specific 400 errors related to the advisor model: messages saying 'the advisor tool is not available', 'cannot be used as an advisor', or a tools.N.model validation error. A further check identifies the specific case where the advisor is unavailable for the caller's organization.
Why
This lets Claude Code identify and presumably handle or report advisor-related errors more precisely, including distinguishing an organization-level entitlement problem from other advisor errors.