Repository navigation
[ENG-21157] fix(agents): Claude 5 models ignore the configured thinking level - #278
Merged
Merged
Conversation
The Claude model contract listed adaptive thinking, xhigh effort and max effort only up to Opus 4.8 and Sonnet 4.6. Opus 5, Opus 5.5, Sonnet 5 and Sonnet 5.5 fell through to the legacy budget form: thinking.type "enabled" with budget_tokens and the interleaved-thinking beta. Bedrock rejects that form for these models. Behind the Boon LLM gateway the request still succeeded, because the gateway rewrites it to adaptive. The rewrite sets no output_config.effort, so the model ran at its default effort and not at the configured level. Match the opus-5 and sonnet-5 families in the three contract checks, as upstream OpenClaw already does. These models now get adaptive thinking with the mapped effort, no interleaved-thinking beta and no custom temperature.
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
The Claude 5 contract change also stops OpenClaw from sending a custom temperature to these models, but no test sent one. Chat titles are the caller that matters: they send a temperature with thinking off. Add Opus 5.5 and Sonnet 5.5 to the canonical temperature table, and a case for the claude-opus-5-5-bedrock gateway alias with thinking off. All three fail on the previous contract.
ikhsanuddin
approved these changes
Oct 11, 2026
1 task done
orswn
added a commit
that referenced
this pull request
Oct 11, 2026
…4-boon.6 (#279) Cut the fork release that ships the one commit on boon since v2026.6.34-boon.5. Opus 5, Opus 5.5, Sonnet 5 and Sonnet 5.5 now get adaptive thinking with the configured effort, no interleaved-thinking beta and no custom temperature (#278, ENG-21157). Bump root package.json and npm-shrinkwrap.json, all 136 plugin manifests, and the version and openclaw peer floor in every extension npm-shrinkwrap.json. Add the 2026.6.34-boon.6 CHANGELOG.md section and the generated extensions/matrix/CHANGELOG.md entry. No dependency changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: ENG-21157
What Problem This Solves
Fixes an issue where agents on Claude Opus 5, Opus 5.5, Sonnet 5 or Sonnet 5.5 do not use the configured thinking level.
The model contract knew adaptive thinking only up to Opus 4.8 and Sonnet 4.6. These models got the legacy request:
thinking.type: enabledwithbudget_tokensand the interleaved-thinking beta. Bedrock rejects that form for them. Behind the Boon LLM gateway the request still worked, because the gateway rewrites it to adaptive. The rewrite sets nooutput_config.effort, so the model ran at its default effort and not at the configuredmedium.Why This Change Was Made
supportsClaudeAdaptiveThinking,supportsClaudeNativeMaxEffortandsupportsClaudeNativeXhighEffortnow match theopus-5andsonnet-5families. This includes the-5-5versions and gateway aliases such asclaude-opus-5-5-bedrock. Upstream OpenClaw has the same coverage. Only the three patterns change. The bareopusalias and the other upstream Claude 5 helpers are not ported.For these models, OpenClaw now sends:
output_config.effortfrom the thinking level;temperature. Opus 5.5 and Sonnet 5.5 reject it on Bedrock.The Anthropic provider plugin also treats them as modern and 1M-context models, as upstream does.
Requests without a thinking level, such as chat titles, still send
thinking.type: disabled. Opus 5.5 and Sonnet 5.5 reject that on Bedrock. getboon/boon-llm-gateway#129 handles it in the gateway.User Impact
Evidence
Focused tests:
The new transport test checks that
claude-opus-5-5-bedrockatmediumsendsthinking: {type: "adaptive"},output_config: {effort: "medium"}, nobudget_tokens, and only thefine-grained-tool-streaming-2025-05-14beta.The temperature tests send
temperaturewith thinking off, the way chat titles do. Opus 5.5, Sonnet 5.5 and theclaude-opus-5-5-bedrockalias omit it. These 3 cases and the adaptive case fail on the previous contract.Live Bedrock checks of the thinking contract:
enabledwith budgetlow/xhigh/maxus.anthropic.claude-opus-5global.anthropic.claude-opus-5-5us.anthropic.claude-sonnet-5global.anthropic.claude-sonnet-5-5The branch is rebased on
boonat2026.6.34-boon.5. After the rebase, the 5 focused test shards passed, andpnpm tsgo:coreandoxfmt --checkare clean.Before this change, a local agent run on Opus 5.5 logged the gateway rewrite
thinking.type=enabled→adaptive and dropping budget_tokenson every turn.