Repository navigation
feat(anthropic): complete Claude Opus 5 rollout - #113392
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 24, 2026, 4:02 PM ET / 20:02 UTC. ClawSweeper reviewWhat this changesThe branch adds Claude Opus 5 metadata, aliases, onboarding defaults, request shaping, cloud-provider support, tests, documentation, and live-test coverage across Anthropic-related integrations. Merge readiness⛔ Blocked until stronger real behavior proof is added - 6 items remain Keep this PR open for owner review. It is a broad, compatibility-sensitive model-catalog and provider-routing change, but this review environment could not perform the required read-only source, history, and failed-check inspection after its first command was sandbox-blocked. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw resolves a selected provider/model reference through its model catalog and provider plugins, then applies provider-specific request contracts before an agent turn reaches Anthropic or a cloud-hosted Anthropic endpoint. This PR updates that path so Claude Opus 5 can be selected and shaped consistently across direct and hosted routes. flowchart LR
A[User model selection] --> B[Model catalog and aliases]
B --> C[Provider plugin routing]
C --> D[Anthropic request contract]
D --> E[Direct and cloud endpoints]
E --> F[Agent response]
Decision needed
Why: The review could not inspect the patch beyond the supplied context, so it cannot safely determine upgrade behavior or explain the failed checks. Before merge
Agent review detailsSecurityNeeds attention: No concrete supply-chain defect is visible in the supplied diff, but the dedicated source-level security pass could not be completed after read-only inspection was sandbox-blocked. PR surfaceSource +226, Tests +628, Docs +29, Config 0, Other 0. Total +883 across 73 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Verify current-main model migration behavior and all direct/cloud provider request contracts, resolve the two failed checks, and then merge only with proof that explicit Opus 4.8 configuration remains unchanged while new setup selects Opus 5 intentionally. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction. The PR adds a newly released model contract, and its claimed live smoke evidence could not be independently inspected. Is this the best way to solve the issue? Unclear. The integration may be the intended path, but the required comparison with current model contracts, provider boundaries, upgrade paths, and failed checks was blocked. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2900026b333d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for rebased head
Known proof gaps: none. |
1ba66e9 to
4631f51
Compare
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: feat(anthropic): complete Claude Opus 5 rollout This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Merged via squash.
|
* feat(models): add Claude Opus 5 support * test(models): align Opus 5 setup fixtures * test(models): update ambient Opus 5 detection * fix(models): reconcile Opus 5 support with main
Related: #113391
What Problem This Solves
PR #113391 added the base
claude-opus-5model contract, but OpenClaw still kept Opus 4.8 as the generic Anthropic/Claude CLI/media default and lacked several route-specific pieces: direct price normalization and Priority Tier omission, official thinking-off semantics on Bedrock routes, Vertex multi-region pricing, Mantle and Foundry completion, broader documentation/live QA, and first-run migration coverage.Why This Change Was Made
opusalias, onboarding defaults, Claude CLI default, media-understanding default, live matrix, and retired-Opus migrations to Opus 5 without removing Opus 4.8.This PR is AI-assisted; I reviewed the implementation, provider boundaries, tests, and live proof.
User Impact
Users can select
anthropic/claude-opus-5and supported cloud equivalents with correct context/output limits, pricing, adaptive-thinking defaults, aliases, and provider-specific request shaping. New Anthropic and Claude CLI setups default to Opus 5. Existing explicit Opus 4.8 configurations continue to work.Evidence
ANTHROPIC_API_KEY=<vaulted> OPENCLAW_LIVE_TEST=1 ANTHROPIC_LIVE_TEST=1 OPENCLAW_LIVE_ANTHROPIC_TOOL_MODEL=claude-opus-5 node scripts/run-vitest.mjs src/agents/anthropic-transport-stream.live.test.ts; redacted result:[test] passed 1 Vitest shard in 1.90s,live_rc:0. This exercised both Anthropic transport implementations with the exact Opus 5 request path; no credential value was logged.tbx_01kyaz7z95yaaqpmcqx58t8yhr: the rebased focused matrix passed (935 tests); finalpnpm check:changedpassed typecheck, lint, plugin SDK/API contracts, import cycles, and all changed-file guards;pnpm buildpassed.src/system-agent/setup-inference.test.ts(117 tests),src/system-agent/setup-inference-detection.test.ts(3 tests), andtest/scripts/docker-e2e-system-agent.test.tspassed;pnpm docs:map:checkpassed.4631f5143d0eae7f8cfb70b0f671599cd19171e3: https://github.com/openclaw/openclaw/actions/runs/30128564131pnpm plugins:inventory:check,pnpm docs:check-i18n-glossary, andgit diff --checkpassed.gpt-5.6-sol, xhigh): clean; no accepted/actionable findings.