Repository navigation
fix(anthropic): honor explicit Opus 5.5 reasoning summaries - #7881
Conversation
Native Opus 5.5 on api.anthropic.com always forced display "updates" plus the updates beta. An explicit reasoning.summary of "concise" or "detailed" now selects display "summarized" without the beta, and the selected display drives beta and response classification on every request, including adapter reuse. "auto" (the Codex default), "none" and an omitted summary keep the #7143 updates default. Closes #7728
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Display selection, response handling, and validation src/adapters/anthropic.ts, tests/adapters/anthropic/anthropic-progress-updates.test.ts, structure/providers/anthropic-progress.md, docs-site/src/content/docs/guides/providers.md, docs-site/src/content/docs/reference/adapters.md, docs-site/src/content/docs/{ja,ko,ru,tr,zh-cn}/reference/adapters.md |
For native Opus 5.5 requests, explicit concise or detailed summaries select summarized display; other summary values select updates. Progress-update handling follows the final display. Tests cover key and OAuth requests, adapter reuse, and signed thinking. Documentation describes the behavior in the provider guide and reference pages. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Suggested reviewers: ingwannu
Merge Risk: 
Minimal · up to 711d1
-
Opus 5.5 requests can opt into reasoning summaries; no actionable merge risk remains identified.
Pre-merge checks: 
5
-
Full details: Linked Issues check
-
Explanation
The PR meets the coding requirements in [
#7728]. Insrc/adapters/anthropic.tsaround lines 1100-1187, native Opus 5.5 readsreasoning.summary; only explicit"concise"or"detailed"selects{ type: "adaptive", display: "summarized" }, while omitted,"auto", and"none"retain"updates". The finalbody.thinking.displaycontrolsprogressUpdates, so beta selection and response classification follow each request on a reused adapter. The code preserveshideThinkingSummaryas a local presentation option.tests/adapters/anthropic/anthropic-progress-updates.test.tsaround lines 20-90 covers key and OAuth authentication, effort variants, default cases, adapter reuse, beta headers, and local hiding. Later tests cover JSON and SSE signed-thinking classification. The reported adapter, typecheck, structure, privacy, and focused test results support the implementation.
Full details: Out of Scope Changes check
-
Explanation
The changes stay within [
#7728]. The source change is limited to native Anthropic Opus 5.5 display selection and request-scoped response classification. The added tests verify the requested opt-in, retained updates default, authentication variants, adapter reuse, replay, and JSON/SSE behavior. The provider guide, adapter references, and progress-update documentation explain the same behavior. No unrelated product behavior or cleanup is demonstrated.
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files. (8 skipped: 8 unsupported.)
-
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- 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.
Comment @coderabbitai help to get the list of available commands.
|
✅ Deterministic PR hygiene checks passed. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Summary
Closes #7728.
Since #7143, Claude Opus 5.5 on
api.anthropic.comalways receivedthinking: {type: "adaptive", display: "updates"}plus thethinking-display-updates-2026-08-18beta, whatever the request asked for. A client that wants reasoning summaries in a thinking view could not get them for Opus 5.5, while every other adaptive Claude model behind the same adapter returns them.reasoning.summaryof"concise"or"detailed"now selectsdisplay: "summarized"without the updates beta, and the signed thinking comes back as reasoning instead of progress commentary."auto"(the value Codex sends by default),"none"and an omitted summary keep the fix(anthropic): surface Opus 5.5 progress as signed commentary #7143 updates default, as the issue specifies.body.thinkingnow drives both the beta header and response classification on every request, so a reused adapter follows each request's own display.hideThinkingSummarykeeps its meaning and never selects the upstream display.guides/providers.md,reference/adapters.md(English plus ja/ko/ru/tr/zh-cn) andstructure/providers/anthropic-progress.md.Translated Claude Messages ingress maps
thinking.displayto summaryauto/noneonly, so it cannot express this opt-in and keeps the #7143 behavior; native Messages passthrough is unaffected.Verification
Bun 1.4.4.
bun test tests/adapters/anthropic/anthropic-progress-updates.test.tsagainst thedevadapter source: 16 fail (the concise/detailed opt-in, adapter reuse and SSE/JSON classification cases); theauto/omitted/nonecases pass on both.bun test tests/adapters/anthropic/: 1426 pass / 0 fail across 66 files.bun test tests/ci-workflows/file-size-ratchet.test.ts: 9 pass / 0 fail.bun run typecheck,bun run structure:check,bun run privacy:scan: pass.Full-suite exception: the full local suite was not run because several concurrent worktrees share the host's test runner; the change is confined to one adapter branch covered by the full
tests/adapters/anthropic/directory above. Hosted CI and live Anthropic inference are left to PR CI and the maintainer.Checklist
Summary by CodeRabbit
Behavior Changes
Documentation