Repository navigation
Closed
Labels
Milestone
Description
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.tsxandCodexSetupSection.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) andprovider.chatgpt.*inpackages/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-profileorprovider.chatgpt.handoff.subscribeto any real server. That includes the smoke server 14658 and the real-data server 14700. - Test the wire against the
t3-clientfake 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
~/.codexor 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
rynfar commentedon Nov 3, 2026
PR #129 follow-up head
65e0ebee1995c036785202d15275bb8e19c8b454fixes 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.
rynfar commentedon Nov 3, 2026
Merged in #129 (
7b7e814967). The exact reviewed head65e0ebee19passed a trial-merge gate ontoc830714733: GATE GREEN, 1,157 tests. CN-WELCOME and ST-PROVIDERS staypartial. 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.