Skip to content

native: Codex ChatGPT setup and accounts (CN-WELCOME slice) #126

Closed

Description

@rynfar

Slice of #81 (CN-WELCOME, M1): Codex's ChatGPT-managed setup and accounts, in the onboarding Agents step and on the Codex provider card in Settings.

Web source:

  • apps/web/src/components/settings/CodexSetupSection.tsx and CodexSetupSection.logic.ts (managed setup, runtime install row, ChatGPT sign-in, reconnect, handoff/import, cancel, welcome card)
  • apps/web/src/components/settings/AddCodexAccountDialog.tsx, ChatGptAccountPicker.tsx, ChatGptConnectionButton.tsx, ChatGptWelcomeCoordinator.tsx, MultipleAccountsNote.tsx
  • its onboarding presentation in apps/web/src/components/onboarding/WelcomeWizard.tsx, including resume at #agents:<environment>
  • wire: packages/contracts/src/providerSetup.ts (ChatGptReconnectProfile, ChatGptTransferredProfile, ChatGptHandoffState) and provider.chatgpt.* in packages/contracts/src/rpc.ts

Native today: the generic provider Account/Runtime rows (crates/core/src/settings/providers/auth.rs, crates/app/src/settings/providers/) and the onboarding Agents step (crates/app/src/onboarding/). Put payloads, decoders and setup-state derivation in crates/core with tests; views stay dumb.

Hard verification boundary

This feature starts real OAuth and installs. Verification must never trigger either.

  • Never send provider.auth.start/respond/complete, provider.install.start, provider.chatgpt.reconnect-profile, provider.chatgpt.import-profile or provider.chatgpt.handoff.subscribe to any real server. That includes the smoke server 14658 and the real-data server 14700.
  • Test the wire against the t3-client fake test server (crates/client/src/test_server.rs) and with core unit tests.
  • Drive UI states offscreen through a snapshot/env fixture that injects auth, install and handoff states. The fixture path dispatches no RPC and never calls open_url.
  • Never open a browser and never read or write ~/.codex or any real credentials. Fixture tokens are obviously fake. Native never logs or persists transferred-profile credentials.

Out of scope: T3 Connect/relay onboarding (#93), multi-computer selection (CN-MULTI), and the ChatGPT usage button (usage surface).

Activity

  1. added this to the M1 Daily driver milestone on Nov 3, 2026
  2. added
    parity
    native:feature
    status:in-progress
    status:review
    and removed
    status:in-progress
    on Nov 3, 2026
  3. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    PR #129 follow-up head 65e0ebee1995c036785202d15275bb8e19c8b454 fixes both cancellation regressions: queued automatic setup is cleared, local install ownership is released, and stale cancel replies preserve newer shared install progress. Failing-first fake-server/core regressions now pass. All common gates passed (1,157 workspace tests); fresh Settings/Agents waiting and reconnect captures pass rendered URL/token assertions.

    Evidence: /private/tmp/native-126-cancel-gate-*.log, /private/tmp/native-126-cancel-{core,client}-{red,green}.log, /private/tmp/native-126-cancel-render-text.log, /private/tmp/native-126-evidence/{settings,agents}-{waiting,reconnect}.png.

    CN-WELCOME and ST-PROVIDERS remain partial: T3 Connect/relay onboarding, simultaneous multi-computer selection, profileId/global welcome coordination, managed CODEX_HOME/shadow-home fields and pre-existing provider/ACP configuration gaps remain. ChatGPT usage is out of scope. Real OAuth, callback receipt, installation and cross-server credential transfer remain intentionally unverified under #126's hard boundary.

  4. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Merged in #129 (7b7e814967). The exact reviewed head 65e0ebee19 passed a trial-merge gate onto c830714733: GATE GREEN, 1,157 tests. CN-WELCOME and ST-PROVIDERS stay partial. Real OAuth, install, callback and credential transfer were deliberately not exercised; everything was verified with the fake test server and offline fixtures, as this issue required.

  5. removed
    status:review
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    native:featureparity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions