Skip to content

Restore native ChatGPT login flow#80

Merged
lynnswap merged 3 commits into
mainfrom
codex/native-login-flow
Jul 4, 2026
Merged

Restore native ChatGPT login flow#80
lynnswap merged 3 commits into
mainfrom
codex/native-login-flow

Conversation

@lynnswap

@lynnswap lynnswap commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Purpose

Restore the native ChatGPT login flow that uses ASWebAuthenticationSession by forwarding the callback scheme to app-server and preserving the callback handling behavior from v0.6.2.

Depends on lynnswap/CodexKit#18.

Changes

  • Bump CodexKit to the native-login API revision.
  • Forward ReviewMonitor's native callback scheme through AppServerCodexReviewBackend.startLogin.
  • Use ASWebAuthenticationSession whenever local native auth is configured and the login challenge has an authentication URL, even if the app-server response omits native metadata.
  • Send account/login/complete only when app-server returns native web-authentication metadata; otherwise wait for the existing login-completed/account-updated notifications, matching v0.6.2 behavior.
  • Update host login tests for native success, metadata-less native login, cancellation, and isolated add-account flows.

Testing

  • swift test --build-system swiftbuild --no-parallel
  • xcodebuild test -project Tools/ReviewMonitor/CodexReviewMonitor.xcodeproj -scheme CodexReviewMonitor -destination 'platform=macOS,arch=arm64' CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO
  • Codex review: no findings

@lynnswap lynnswap marked this pull request as ready for review July 4, 2026 04:39
@lynnswap lynnswap marked this pull request as draft July 4, 2026 04:52
# Conflicts:
#	Package.resolved
#	Package.swift
#	Tools/ReviewMonitor/CodexReviewMonitor.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@lynnswap lynnswap marked this pull request as ready for review July 4, 2026 05:29
@lynnswap lynnswap merged commit a09f96c into main Jul 4, 2026
1 check passed
@lynnswap lynnswap deleted the codex/native-login-flow branch July 4, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant