feat(cli): support OAuth login in setup - #4665
Draft
hey-mira wants to merge 1 commit into
Draft
Conversation
hey-mira
force-pushed
the
feat/cli-setup-oauth
branch
2 times, most recently
from
September 4, 2026 06:59
23053f0 to
33ccb3b
Compare
Generated-by: Codex
hey-mira
force-pushed
the
feat/cli-setup-oauth
branch
from
September 4, 2026 09:13
33ccb3b to
6f5f23f
Compare
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.
Summary
openai-codexto the existing flat/setuppicker. New OAuth accounts now reuse the Connection name/slug step (Provider → Identity → OAuth → Models), while existing accounts retain the three-step reauthorization flow.slug_takenwithout leaving a Connection or credential behind.Fixes #4606
Verification
npm run lintnpm run format:checknpm run typechecknpm run check:tui-copynpm run check:asf-headersnpx knip --workspace apps/desktopnpx knip --workspace packages/uinode scripts/protocol-epoch-check.mjs --base origin/main --head HEADmaindependencies: 8 passed, 0 failedThe sole Runtime Host failure is reproducible in
production Host executes Bash against the current live sandbox boundary; neither that test nor its execution implementation is touched by this PR. All OAuth and changed-path suites pass.Review focus
Runtime Host remains the identity and persistence authority: the CLI never creates a placeholder or renames after login. The new closed OAuth identity/error shapes move the compatibility epoch from 109 to 110. Local TUI OAuth presentation still uses a short-lived sibling Host connection, and shutdown drains pending cancellation/commit arbitration.
Final automated Standards and Spec reviews found no actionable code findings. Independent target validation remains at the wire, operation-input, transaction-document, and receipt-document trust boundaries so their recovery formats stay decoupled.
Draft follow-up
AI use
Select exactly one:
Tool(s) and scope: Codex implemented the CLI, Runtime Host, and storage changes; added tests and documentation; and performed a two-axis Standards/Spec review. The commit includes a
Generated-by: Codextrailer.Checklist
Does this PR entail a change in behavior?