Repository navigation
fix(claude): show Anthropic account verification guidance - #8956
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
✅ Deterministic PR hygiene checks passed. |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. Hygiene✅ Deterministic PR hygiene checks passed. |
Review follow-up for lidge-jun#8956. The Claude account-verification matcher accepted any text after the fixed sentence, so a different diagnostic appended to it (an invalid key, say) would have been shown as the Anthropic verification guidance. Only the portal link may follow now; the unit test covers the link, an appended credential diagnostic and a foreign link.
Codex Review Summary: ✅ CompletedThis 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. |
|
Maintainer integration into
This is maintainer integration, not an independent approval. |
Summary
When Anthropic asks for account verification, direct Claude Code shows where to go, but OpenCodex turns the notice into a generic permission error. The Messages endpoint now keeps the HTTP 403 and points Claude Code to the official Anthropic Verification Portal. Request history records
account_verification_requiredrather than a generic access denial.The link is fixed. The response and request history do not copy upstream URLs, query parameters, or organization IDs. Other permission errors, routing, and retry behavior are unchanged.
Verification
bun run test tests/claude-integration/messages-lane-errors.test.ts tests/lib/upstream-condition.test.ts tests/claude-integration/messages-error-contracts.test.ts tests/claude-integration/claude-client-refusal-status.test.ts tests/usage/request-log-error-detail.test.ts: 110 passed on macOS with the pinned Bun runner. The new cases cover both/v1/messagesstream settings against a loopback Anthropic fixture, one upstream send, and sanitized recent and persisted request logs. Before the fix, both cases returned the generic denial.bun run typecheck,bun run structure:check,bun run privacy:scan, andgit diff --check: passed.cd docs-site && bun install --frozen-lockfile && bun run build: passed.Maintainer follow-up (review round)
devand added the Spanish translation of the new troubleshooting note; without ittests/ci-workflows/docs-spanish-localization.test.tsfails on the merged tree.isClaudeVerificationNotice: only the portal link may follow the fixed sentence, so an appended diagnostic such as an invalid key keeps its own classification. The unit test covers the link, an appended credential diagnostic and a foreign link, and fails on the previous matcher.structure:checkand file-size ratchet exit 0. Independent review: APPROVE after three rounds.Checklist
Developed with AI agents, with a human in the loop. Model: gpt-6.2-sol.
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.
Summary by CodeRabbit
account_verification_requiredin request and usage records.