Skip to content

fix(codex): bind managed ChatGPT accounts to official providers - #550

Merged
SaladDay merged 1 commit into
mainfrom
codex/issue547-codex-managed-account
Nov 5, 2026
Merged

SaladDay merged 1 commit into
mainfrom
codex/issue547-codex-managed-account

Conversation

@SaladDay

@SaladDay SaladDay commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Codex's OpenAI Official form now lets users select a managed ChatGPT account or keep the native Codex login. Previously, managed account selection was only available through the Codex template under Claude.

Activation writes a refreshable login through the existing live-file transaction, preserves the previous native login, and keeps managed tokens out of provider records. Credential ownership, CLI refresh-token adoption, and account removal/unbinding follow upstream ca58c031, including distinguishing members of the same ChatGPT workspace.

Scope: official account binding and its credential lifecycle. Managed accounts are explicitly rejected by isolated launches (start, TUI temporary launch, and --shared-sessions); switch the provider first, then run codex. This avoids silently launching a different account without adding multi-directory credential synchronization. No new proxy or Stack capabilities are included.

Closes #547

Validation:

  • 813 Codex unit tests passed (1 ignored); final focused managed-account run: 71 passed.
  • Proxy takeover: 12 passed; shared-session launch: 9 passed; formatting and diff checks passed.
  • Fresh independent blind review passed after fixes, including separate isolated test runs.
  • provider_commands: 26 passed, 3 usage-query tests failed identically on unchanged main (12e4613e).
  • Clippy remains blocked by the existing empty-range error in src/cli/tui/ui/home_chart.rs:806; left outside this change.

No authenticated live-account test was performed. Please review before merging.

@SaladDay
SaladDay merged commit 8a03888 into main Nov 5, 2026
6 checks passed
zydo added a commit to zydo/cc-switch-cli that referenced this pull request Nov 7, 2026
Resolve the TUI provider-form conflicts between the managed-account
rename (ManagedAccount / managed_account_id) and SaladDay#550's ChatGPT account
binding for Codex official providers: the official-provider binding is
ported onto the renamed field, so serialization, loading, the account
picker, help text and tests keep both behaviors.
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.

请问codex供应商怎么选择官方账号

1 participant