Skip to content

fix(web): Add support for opus 4.8#1249

Merged
brendan-kellam merged 2 commits into
mainfrom
bkellam/fix-opus-4-8
May 30, 2026
Merged

fix(web): Add support for opus 4.8#1249
brendan-kellam merged 2 commits into
mainfrom
bkellam/fix-opus-4-8

Conversation

@brendan-kellam
Copy link
Copy Markdown
Contributor

@brendan-kellam brendan-kellam commented May 30, 2026

Summary by CodeRabbit

  • New Features
    • Expanded adaptive-thinking support to additional Claude models, enabling enhanced AI reasoning across more Claude versions.
  • Bug Fixes
    • Fixed an error where a newer Claude model incorrectly reported adaptive thinking as unsupported, improving stability and preventing related failures.

Review Change Stack

@github-actions

This comment has been minimized.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 30, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2e186921-e7a4-49f6-8013-498c64856171

📥 Commits

Reviewing files that changed from the base of the PR and between 863e52e and 8e4e454.

📒 Files selected for processing (1)
  • CHANGELOG.md

Walkthrough

The isAdaptiveThinkingSupported condition for Anthropic models in getAISDKLanguageModelAndOptions was expanded to include claude-opus-4-8 models alongside the existing claude-opus-4-7 support, and CHANGELOG.md was updated with a “Fixed” entry noting the claude-opus-4-8 "thinking.type.enabled" error resolution.

Changes

Adaptive Thinking Model Support

Layer / File(s) Summary
Claude Opus 4.8 Adaptive Thinking Support
packages/web/src/features/chat/utils.server.ts, CHANGELOG.md
The isAdaptiveThinkingSupported condition now returns true for modelIds starting with claude-opus-4-8 in addition to claude-opus-4-7, and the changelog adds a “Fixed” note about the claude-opus-4-8 thinking.type.enabled support error.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • sourcebot-dev/sourcebot#1127: Both PRs modify the adaptive thinking condition in getAISDKLanguageModelAndOptions for the Anthropic provider—this PR extends support to claude-opus-4-8, while the related PR added adaptive thinking for claude-opus-4-7.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Add support for opus 4.8' directly reflects the main change: extending adaptive thinking support to Claude Opus 4.8 models alongside the existing 4.7 support.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bkellam/fix-opus-4-8

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@brendan-kellam brendan-kellam merged commit 2bd1136 into main May 30, 2026
7 of 8 checks passed
@brendan-kellam brendan-kellam deleted the bkellam/fix-opus-4-8 branch May 30, 2026 05:42
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