Skip to content

fix(ai): default newer Claude models to drop invalid thinking - #47884

Merged
rekram1-node merged 3 commits into
v2from
effort-protocols
Sep 8, 2026
Merged

rekram1-node merged 3 commits into
v2from
effort-protocols

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Sep 8, 2026 •

Copy link
Copy Markdown
Collaborator

Issue for this PR

No linked issue.

Type of change

  • Bug fix

What does this PR do?

Default Anthropic thinking-prefix recovery to drop_block for Claude 5.1+ directly in the AI adapter. Recognize dash/dot versions, gateway namespaces, and Vertex suffixes. Send the required beta header and honor explicit thinking settings.

How did you verify your code works?

  • 93 Anthropic tests passed, covering newer/older model IDs, beta headers, compaction, and explicit thinking settings.
  • bun typecheck passed in packages/ai and packages/core.

Screenshots / recordings

Not applicable.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@rekram1-node
rekram1-node merged commit 5165d60 into v2 Sep 8, 2026
10 checks passed
@rekram1-node
rekram1-node deleted the effort-protocols branch September 8, 2026 04:46
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant