Skip to content

feat(codex): explicit ChatGPT-subscription vs API-key sign-in choice#109

Merged
Aayam Bansal (aayambansal) merged 1 commit into
mainfrom
fix/codex-signin-branch
Jul 6, 2026
Merged

feat(codex): explicit ChatGPT-subscription vs API-key sign-in choice#109
Aayam Bansal (aayambansal) merged 1 commit into
mainfrom
fix/codex-signin-branch

Conversation

@aayambansal

Copy link
Copy Markdown
Member

Completes the Codex sign-in UX so choosing OpenAI is unambiguous.

Before

openscience keys add → select OpenAI dropped straight into the API-key password prompt. The ChatGPT-subscription (Codex) path was only reachable via a separately-pinned top-of-list item, so a user who looked under "OpenAI" never saw it.

After

Selecting OpenAI presents an explicit choice:

  • ChatGPT subscription (Codex) — the OAuth flow, no API key (Plus/Pro/Business).
  • OpenAI Platform API key — the existing sk-… password prompt.

The Codex path stays pinned at the top of the provider list too, so both entry points work. A shared runCodexAuthFlow() helper backs both keys add (ChatGPT branch) and keys signin, removing duplicated plugin-lookup/dispatch wiring. UX-only — the OAuth mechanics are unchanged.

Verification

typecheck + prettier clean; full backend suite (905 tests) green.

Selecting the OpenAI provider in `openscience keys add` now presents an
explicit choice — 'ChatGPT subscription (Codex)' (the OAuth flow, no API
key) vs 'OpenAI Platform API key' — instead of dropping straight into the
API-key prompt with the Codex option only discoverable as a separate
pinned list item. Users who look under 'OpenAI' now find the subscription
path too.

Extracts a shared runCodexAuthFlow() helper so `keys add` (ChatGPT
branch) and `keys signin` reach the exact same OAuth flow, removing the
duplicated plugin-lookup + handlePluginAuth wiring.
@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openscience Ready Ready Preview, Comment Jul 6, 2026 3:44pm

Request Review

@aayambansal Aayam Bansal (aayambansal) merged commit dececb9 into main Jul 6, 2026
12 checks passed
@aayambansal Aayam Bansal (aayambansal) deleted the fix/codex-signin-branch branch July 6, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant