Repository navigation
fix(codex): prevent duplicate pool registration of native main account and fix access token email extraction - #7399
terrytan95 wants to merge 3 commits into
Conversation
…t and fix access token email extraction
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
⏳ DRAFT
What to do
Review readiness checklist
3/4 boxes ticked. This pull request was already a draft. Its draft status will be preserved after every issue above is resolved. |
…7398) (#7414) Builds on #7399 by @terrytan95: reject pool registrations that duplicate the native main login (account id + plan bucket + email), read the namespaced OpenAI profile email, keep the JWT plan when WHAM fails, and exclude already-stored duplicates of the observed native main from rotation, pinning and exact routing (dashboard reason duplicate_main). Closes #7398 Co-authored-by: terrytan95 <10609214+terrytan95@users.noreply.github.com>
Preserve the implementation and regression coverage carried into dev by PR lidge-jun#7414, including the original PR lidge-jun#7399 fixes and its additional native-main admission and stored-duplicate protections. The resulting tree matches dev at 1202598.
|
Follow-up intake at |
Summary
Closes #7398
Verification
Verified commit
306b2e2db131ad1c06b3c44d3e45e314016326e8locally on macOS:bun test tests/codex-integration/codex-auth-api.test.ts tests/codex-integration/codex-auth-collision.test.ts tests/oauth/chatgpt-oauth.test.ts: 391 passed, 0 failed.bun run test:changed: 34,922 passed, 43 skipped, 0 failed across 1,553 files; comparison merge based3dafd39e285395ab16a1b0d608ff5dfbc99e096.bun run typecheck: passed.bun test tests/test-layout.test.ts tests/test-layout-tooling.test.ts tests/ci-workflows/file-size-ratchet.test.ts: 36 passed, 0 failed.bun run structure:checkandbun run privacy:scan: passed.docs-site:bun install --frozen-lockfileandbun run build: passed; 585 pages and 83,057 internal links checked. Existing sshconfig syntax-highlighting warnings remain.git diff --check: passed.The standalone full suite and live OAuth were not run. The import-graph suite provides broad coverage, with the source-reading API and layout/file-size tests also run explicitly. This PR remains Draft pending maintainer security review; local results do not replace required CI.
Current delivery blocker:
hygieneandenforce-targetreportunsponsored_surface. PerMAINTAINERS.md, a maintainer must review the authentication changes and applymaintainer-sponsored. No approval or sponsorship has been self-applied.Checklist
Summary by CodeRabbit
Bug Fixes
Documentation