Skip to content

refactor(auth): Atlas is login/logout, Codex is connect/disconnect#118

Merged
Aayam Bansal (aayambansal) merged 1 commit into
mainfrom
refactor/auth-atlas-login-codex-connect
Jul 7, 2026
Merged

refactor(auth): Atlas is login/logout, Codex is connect/disconnect#118
Aayam Bansal (aayambansal) merged 1 commit into
mainfrom
refactor/auth-atlas-login-codex-connect

Conversation

@aayambansal

Copy link
Copy Markdown
Member

Splits the two account types onto distinct, symmetric verb pairs and removes the ambiguity where both connect login and login meant the Atlas account.

Before

  • Atlas: top-level login/logout/status/sync/devices and a connect umbrella that re-aliased all of them (connect login, connect logout, …).
  • Codex: keys signin to sign in, and no first-class disconnect.

After

  • Atlas = login / logout (plus status/sync/devices), all top-level. The connect umbrella is removed.
  • Codex = connect / disconnect:
    • openscience connect [codex] — sign in with a ChatGPT subscription (reuses runCodexAuthFlow).
    • openscience disconnect [codex]new: clears the local openai-codex OAuth credential and best-effort revokes it server-side (DELETE /api/keys/openai-codex) — the counterpart sign-out that was missing. keys signin still works.
    • [service] defaults to codex and only accepts codex today, so both connect and connect codex work.

Reference-string cleanup

Every user-facing string/prompt that told users to run openscience connect login / connect sync now points at the top-level openscience login / sync (the connect subcommands no longer exist) — including the error in provider.ts, the skill.ts hint, research.txt, the initialize-atlas-graph skill, and the frontend dev helper. The canonical initialize-atlas-graph/SKILL.md is updated too so the embedded-vs-canonical drift test stays green.

Verification

typecheck + prettier clean; full backend suite (929 tests) green; --help confirms connect/disconnect are Codex and login/logout/sync/devices remain Atlas.

Splits the two account types onto distinct, symmetric verb pairs to
remove the long-standing ambiguity where both 'connect login' and 'login'
meant the Atlas account:

- Atlas (managed account, wallet, sync) keeps the top-level login /
  logout / status / sync / devices commands. The back-compat 'connect'
  umbrella that aliased them is removed.
- Codex (ChatGPT subscription) now owns the connect / disconnect verbs.
  'connect [codex]' signs in with ChatGPT (reusing runCodexAuthFlow);
  'disconnect [codex]' is a NEW command that clears the local openai-codex
  OAuth credential and best-effort revokes it server-side — the missing
  counterpart to sign-in. 'keys signin' still works.

Updates every user-facing string and prompt that told users to run
'openscience connect login' / 'connect sync' to the top-level 'openscience
login' / 'sync' (the connect subcommands no longer exist), including the
canonical initialize-atlas-graph SKILL.md so it stays in sync with the
embedded copy.
@vercel

vercel Bot commented Jul 7, 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 7, 2026 2:46am

Request Review

@aayambansal Aayam Bansal (aayambansal) merged commit 6609ef6 into main Jul 7, 2026
11 checks passed
@aayambansal Aayam Bansal (aayambansal) deleted the refactor/auth-atlas-login-codex-connect branch July 7, 2026 02:48
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