Repository navigation
feat(native): add managed ChatGPT setup and accounts - #129
Merged
Merged
Conversation
rynfar
force-pushed
the
nw/126-chatgpt-setup
branch
from
November 3, 2026 14:26
d1afe50 to
b776760
Compare
This was referenced Nov 3, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Codex's native provider card and onboarding Agents step had only generic account/runtime controls. This ports managed ChatGPT setup, reconnect and multiple accounts into a shared native card, with operation-scoped install/sign-in sequencing, cancellation, handoff/import retry, masked emails and the connected-plan welcome.
Closes #126 (a slice of #81). CN-WELCOME and ST-PROVIDERS remain partial.
Web-path applicability:
CodexSetupSection.tsx,.logic.ts#agents:<environment>; native welcome links and a saved environment-specific resume also restore Agents. No Electron bridge/protocol helper is claimed.AddCodexAccountDialog.tsxChatGptAccountPicker.tsx,ChatGptConnectionButton.tsxChatGptWelcomeCoordinator.tsxMultipleAccountsNote.tsxWelcomeWizard.tsxVerification obeys #126's hard boundary. No real OAuth/install/ChatGPT RPC, browser opening, real window, paid turn, clipboard operation, or real-data write was used. The account check read only the required Codex email metadata. Setup fixtures boot without a client and skip discovery, subscriptions, commands and URL opening; captures use the copied smoke native home. Transferred profiles have no Debug implementation, stay on the network task and are never persisted.
Validation:
cargo test --workspace(1,157 workspace tests; the focused GPUI test also passed during the preceding review); core state/payload tests andt3-clientfake-server tests cover all three ChatGPT methods, null reconnect, auth/handoff decoding, install ordering, cancellation/late success, flow matching and in-memory import retry.cargo clippy --workspace --all-targets -- -D warnings; snapshot-feature clippy and build.vp run check:changed native.Local evidence (not uploaded, per factory rules):
/private/tmp/native-126-evidence/before-settings.png,/private/tmp/native-126-evidence/before-agents.png./private/tmp/native-126-evidence/{settings,agents}-{signed-out,install-needed,waiting,reconnect,handoff,failed,multiple}.png./private/tmp/native-126-evidence/settings-{picker,add-account,welcome}.png. Focus/restore captures:settings-{picker,add-account}-{keyboard,escape}.pngin that directory. Default mode:{settings,agents}-unmanaged.png; existing CLI auth:settings-existing-cli.png./private/tmp/native-126-verified-tests.log,/private/tmp/native-126-review-gate-tests.log,/private/tmp/native-126-review-gate-clippy.log,/private/tmp/native-126-review-changed.log.Remaining gaps: T3 Connect/relay onboarding (#93), simultaneous multi-computer selection (CN-MULTI), ChatGPT usage (explicitly out of scope), profileId-based/global welcome coordination, managed CODEX_HOME/shadow-home fields (the projection is owned by another worker), and the pre-existing provider configuration/ACP Registry wizard gaps. Actual OAuth, callback receipt, installation and cross-server credential transfer are intentionally unverified against real servers.
Review fixes (all eight findings accepted):
observe-installguard.id_token_hintand displays only safe page copy. The pre-fix PNG audit found zero token hints.t3code-nativescheme.render_modalextension adds close-button and overlay-priority support without changing existing DialogFrame callers.Rebased onto
fork/nativeatc830714733. Regression red/green logs:/private/tmp/native-126-review-{red,core-red,default-red,green,focus-red-correct-stops,focus-green2}.log. Final native gate logs:/private/tmp/native-126-review-gate-*.log.Cancellation re-review (both findings accepted), head
65e0ebee1995c036785202d15275bb8e19c8b454:Fresh waiting/reconnect captures for Settings and Agents pass the rendered-text assertion in
scripts/assert-chatgpt-captures.swift: the safe sign-in page message is present and URLs/token hints are absent. Red/green cancellation logs:/private/tmp/native-126-cancel-{core,client}-{red,green}.log. Final gates:/private/tmp/native-126-cancel-gate-*.log,/private/tmp/native-126-cancel-changed.log; rendered assertions:/private/tmp/native-126-cancel-render-text.log. All required gates passed.fork/nativeremainsc830714733, already the branch base.Built with GPT-6.1 Sol in Codex