Use this checklist to keep oc-codex-multi-auth aligned with the Antigravity-style auth TUI pattern, while preserving Codex-specific logic and storage behavior.
- Match interaction shape and operator experience.
- Do not copy provider-specific business logic from Antigravity.
- Keep Codex storage/auth semantics as source of truth.
opencode auth login-> provider -> login method -> account dashboard.- Dashboard sections exist in this order:
ActionsAccountsDanger zone
- Core actions visible:
Add accountCheck quotasDeep probe accountsVerify flagged accountsStart freshDelete all accounts
- Account row format includes:
- numeric index
- account label/email
- state badges (
[current],[active],[ok],[rate-limited],[disabled],[flagged]) - usage hint (
used today,used yesterday, etc.)
Up/Downmoves selection.Enterconfirms selected item.Escreturns/back/cancel.- Ctrl+C exits gracefully without corrupting terminal state.
- Cursor visibility restored on exit from menu.
- Selecting an account opens account detail actions:
Enable/Disable accountRefresh account(re-auth that account)Delete this accountBack
- Destructive actions require confirmation.
Delete all accountsrequires explicit typed confirmation (DELETE).
Check quotasscans all active accounts and prints per-account results.Deep probeperforms stricter validation and surfaces richer diagnostic output.- Output includes index progress (
[i/N]) and per-account status (OK,ERROR,DISABLED). - Summary line always shown at end (
ok/error/disabledcounts).
- Invalid-refresh accounts are moved to flagged storage.
Verify flagged accountscan restore accounts that refresh successfully.- Disabled accounts remain visible but are skipped from active rotation and health execution paths.
- Account manager never selects disabled accounts as current/next candidate.
- Storage writes occur after:
- account add/update/delete
- enable/disable toggle
- flagged pool migration/restore
- In-memory account manager caches are invalidated after any account pool mutation.
- Import flow invalidates both cached manager object and pending manager promise.
- Default behavior: Codex-style TUI is enabled.
- Opt-out is supported through config/env:
codexTuiV2: falseCODEX_TUI_V2=0
- Visual controls:
codexTuiColorProfile:truecolor/ansi256/ansi16codexTuiGlyphMode:ascii/unicode/auto
codex-listreflects account states and active selection.codex-statusshows per-family active index and account-level state details.codex-importandcodex-exportremain compatible with multi-account storage.
npm run -s typecheckpasses.npm testpasses.- Manual smoke run:
- login -> dashboard appears
- add account works
- check quotas runs and summarizes
- disable account prevents rotation to it
- verify flagged restores a recoverable account
- delete-all requires typed confirmation and clears active + flagged pools
- Replicating Antigravity Google token semantics.
- Sharing storage files with unrelated plugins.
- Editing Antigravity repo files as part of Codex plugin maintenance.