Repository navigation
fix: make ChatGPT/API-key auth conflicts actionable - #19
Conversation
…mdangelo/codex/fix-chatgpt-auth-precedence-20260728
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2918e3e6ef
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b4b9b5d079
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
zcrab-oai
left a comment
There was a problem hiding this comment.
Approved. I left one non-blocking inline note about the access-token login warning promising an interactive credential choice that the current ChatGPT-only status check does not provide. The access-token-specific wording in #23 already addresses the concern.
Problem
A successful ChatGPT login can be silently overridden by an ambient
OPENAI_API_KEYorCODEX_API_KEY. The subsequent scan then reports a generic authentication or model-access error, and the existing recovery hint is hidden in non-interactive terminals. This makes users think that ChatGPT login is broken even though a different credential was actually selected.Change
401and403scan failures.This is intentionally limited to the P0 authentication issue: no TAC gate, policy changes, token-refresh write-back, cost changes, or unrelated documentation changes.
Verification
1.3.14: 348 passed, 3 expected platform/integration skips, 0 failed.401,403, stored credentials, and device-code login.