Repository navigation
fix(anthropic): recognize TypeScript Agent SDK client identity - #7059
Conversation
|
✅ 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
Maintainer integration record (MAINTAINERS.md |
Summary
claude-cli/<version> (external, sdk-ts)as a TypeScript Agent SDK client identity. Complete SDK sessions now keep their observed headers and allowlisted native feature betas on first-party Anthropic requests, avoiding the generic-client fallback reported in [Bug]: Native Claude client identity rejects the Agent SDK sdk-ts entrypoint (betas dropped, output_config 400) #7040.output_config; update the architecture contract and English user documentation.Closes #7040
Verification
bun test tests/adapters/anthropic/anthropic-client-identity.test.ts— 17 passed, 2 failed on SDK identity acceptance and preserved UA.bun test tests/adapters/anthropic/anthropic-client-identity.test.ts tests/adapters/anthropic/anthropic-beta-allowlist.test.ts tests/adapters/anthropic/anthropic-messages-passthrough-oauth.test.ts— 72 passed, 0 failed after the fix.bun run test:changed— 4,211 passed, 30 skipped, 0 failed across 185 files, compared withorigin/devmerge basef5f73ff3970b3b238c4e2fade29ba3f64914f637.bun test tests/ci-workflows/file-size-ratchet.test.ts— 9 passed, 0 failed; no caps raised.bun run typecheck,bun run structure:check,bun run privacy:scan, andgit diff --check— passed.docs-site/:bun install --frozen-lockfileandbun run build— passed; 569 pages built, 79,403 internal links checked.bun run testomitted under the documented resource exception because several implementation worktrees share this machine. Focused regressions and import-connected coverage ran locally; the PR's fast Ubuntu CI provides its configured broader coverage. The 30 changed-suite skips are opt-in live-client scenarios. No live Anthropic request was made.Checklist
Summary by CodeRabbit
sdk-tsentrypoint now retain their identity headers and allowlisted native feature betas when routed to first-party Anthropic.sdk-tsentrypoint and its required identity headers.