Skip to content

Fix general-agent thinking options for supported Claude models - #1099

Merged
sidneyswift merged 1 commit into
mainfrom
codex/anthropic-thinking-compatibility
Oct 22, 2026
Merged

sidneyswift merged 1 commit into
mainfrom
codex/anthropic-thinking-compatibility

Conversation

@sidneyswift

@sidneyswift sidneyswift commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Selecting anthropic/claude-opus-4.7 currently configures the general agent with manual thinking, which that model rejects. Use adaptive thinking for the original three explicit Gateway IDs (Opus 4.7, Opus 4.6, Sonnet 4.6), while preserving the existing manual configuration for every other ID. Adaptive requests use summarized display and medium effort without a manual token budget.

The installed Anthropic SDK already supports these options; no dependency or lockfile upgrade is needed. This is the bounded successor to original #445, not the separate SDK v7/provider-migration work. Selected/default models, OpenAI/Google options, tools, stopping rules, billing and workers are unchanged. Unknown/newer/alternate IDs are deliberately not inferred as compatible, and other execution paths are outside this fix.

Validation: existing baseline 25 tests pass; new constructor regressions fail for all three IDs before implementation; focused green 37 tests; broader agents/chat/AI/networking/contracts suite 1,014 tests across 132 files passes. Tests exercise the installed SDK request serializer using fake fetch, including older-model wire compatibility. Lint and changed-file formatting pass. Whole-project TypeScript retains the same 211 existing diagnostics byte-for-byte. Independent exact-head Spec/Standards review: no actionable findings. Full exact-head CI: 7,291 tests passed, 15 skipped; response-contract type check, lint, formatting, compatibility and Vercel preview passed.

Anthropic compatibility guide, checked October 21, 2026. No live provider request, paid generation, customer operation, credential inspection or deployment was performed; tests do not establish production provider acceptance, output quality, latency or cost.

@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api Ready Ready Preview Oct 22, 2026 12:18am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 22, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: recoupable/api/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: eac0d079-6213-4515-a47c-7f9ee6e61296
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@sidneyswift
sidneyswift merged commit 3ae02e2 into main Oct 22, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
Preview — 7184095f Deployed Oct 22, 2026 by vercel[bot]
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