Repository navigation
fix(codex): bind managed ChatGPT accounts to official providers - #550
Merged
Merged
Conversation
Closed
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.
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 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 runcodex. This avoids silently launching a different account without adding multi-directory credential synchronization. No new proxy or Stack capabilities are included.Closes #547
Validation:
provider_commands: 26 passed, 3 usage-query tests failed identically on unchanged main (12e4613e).src/cli/tui/ui/home_chart.rs:806; left outside this change.No authenticated live-account test was performed. Please review before merging.