Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. This PR stays in draft until every box above is ticked. |
|
Thank you, @oocheol, for identifying the Claude OAuth client-version issue and contributing the fix and explanation. The generated client profile and overlapping fingerprint tests have landed in #8474 (merge commit Closing this PR as superseded; the documentation carry remains tracked in #8482. |
Summary
Codex requests routed through the Anthropic OAuth adapter can select
claude-fable-5-2, but the provider rejects the generatedclaude-cli/2.1.280identity with HTTP 400claude_code_version_too_old(minimum2.1.290). Updating a separately installed Claude CLI does not change OpenCodex's generated profile.Closes #8461.
Based on latest
dev8cab704, refreshed again before commit. This is one focused commit across six files.Profile evidence and review boundary
Inspected the official npm artifacts with
npm pack --ignore-scriptson 2026-11-10:@anthropic-ai/[email protected]declares the matching platform package.@anthropic-ai/[email protected], npm SHA-173aca8b206302a4c9edc66729a98aea87da98d93: the bundled JavaScript supplies SDK0.128.0toX-Stainless-Package-Versionandprocess.versionto the Node runtime header; the bundled runtime strings identify Node compatibilityv26.12.1. The CLI User-Agent retains theclaude-cli/<version> (external, cli)form.This is static package inspection plus the bounded live checks below, not a claim that every CLI feature or platform was exercised. No downloaded package or credential material is included in the diff. The installed proxy and CLI were not modified or restarted.
This changes an authentication-related header profile. Maintainer sponsorship and explicit security review are still required before merge. Keep Draft pending review and current-head CI; the profile does not establish subscription entitlement or bypass a model-access refusal.
Verification
Windows x64; commands below used the repository's
node_modules/bun/bin/bun.exe1.4.4.bun test --no-env-file --isolate ./tests/clients/client-fingerprint.test.ts --test-name-pattern 'minimum CLI version' --timeout 30000failed both new cases at the version-floor assertion, as expected. After the fix, the complete file passed with 18 tests / 71 assertions / 0 failures usingbun test --no-env-file --isolate ./tests/clients/client-fingerprint.test.ts --timeout 30000.bun run typecheck: passed, 2,376 files.bun run structure:check,bun run privacy:scan,bun run scripts/file-size-ratchet.ts, andgit diff --check: passed.docs-site/,bun install --frozen-lockfilethenbun run build: passed, 665 pages / 95,875 internal links. Build emits chunk-size and emptyi18ncollection warnings; no build or link-check failure.GET /api/oauth/usageandGET /api/oauth/profileboth returned 200, using the existing active credential without refresh or store writes. Response contents and account identifiers were not logged.createAnthropicAdapterto send a syntheticclaude-fable-5-2Messages request withmax_tokens: 64, no tools, and no conversation history. Observed 200, a Messages response containingOK,stop_reason: end_turn, 46 input / 4 output tokens. An earlier probe result was discarded because the scratch harness decoded the bounded-body helper incorrectly; the corrected harness reads its.textresult. This verifies one direct upstream request, not the installed proxy, Desktop UI, or all models/accounts.Scope exception: the full repository suite and unrestricted changed graph were not run for this small profile refresh on the shared Windows workstation; the focused native/account tests alone took almost three minutes. Broader suite and other-platform coverage remain for CI. No hosted CI result is claimed here; fork workflows may require maintainer authorization on the new head.
Checklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Required local validation passed; commands, results, and any full-suite exception are documented.
I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.