{"version":"2.1.282","anchor":"sdk-set-max-thinking-tokens-now-rejects-highlights-when-th","canonical_anchor":"control-protocol-thinking-display-highlights-now-fails-in","heading":"Requests for 'highlights' thinking display now fail when the session cannot use it","tier":"notice","area":"SDK","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282\/e\/sdk-set-max-thinking-tokens-now-rejects-highlights-when-th","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282","markdown":"### Requests for 'highlights' thinking display now fail when the session cannot use it\n\nset_max_thinking_tokens with thinking_display highlights now returns an error and changes nothing when highlights is unavailable, instead of silently falling back\n\n**What**\n\nPrograms that drive Claude Code through the SDK or Remote Control can send a `set_max_thinking_tokens` request to set Claude's thinking budget and how its thinking is shown (`thinking_display`). A request for \"highlights\" is now checked before anything is applied. If highlights is not available, the request fails with the error \"thinking_display \"highlights\" is not available in this session, so neither the budget nor the display was changed\", and neither setting changes. It fails:\n\n- after the API has already refused highlights;\n\n- on Bedrock, Vertex or another provider without Anthropic's first-party beta features;\n\n- when experimental betas are off, through `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS` or organisation policy;\n\n- on a Claude 3 model, except on Microsoft Foundry.\n\nThe same check runs in the Remote Control handler (`onSetMaxThinkingTokens`) and in the interactive session's thinking-budget handler. Before, the only check was that the budget was a whole number or null, and for these clients the request succeeded and the display fell back to \"omitted\".\n\n**Why**\n\nPrograms asking for highlights where it cannot work now get a clear error instead of a partial change where the budget moved but the display did not.\n\n- Area: SDK\n- Names: `set_max_thinking_tokens`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5"}