fix: Codex model discovery returned unusable gpt-5.5-*-wm slugs - #1981
Merged
Conversation
…real Codex CLI client_version Model discovery hit chatgpt.com/backend-api/models (the ChatGPT web-app catalog) with client_version=osaurus-<bundle version>. The web catalog recently began serving experiment slugs like gpt-5.5-cca-wm / gpt-5.5-wm, which pass the gpt-X.Y slug filter, replace the static fallback list, and then fail on /backend-api/codex/responses — leaving ChatGPT-auth users with only unusable models. Point discovery at the Codex catalog (/backend-api/codex/models, matching codex-rs's CHATGPT_CODEX_BASE_URL) and send a pinned Codex CLI semver (0.144.1), since the backend silently filters the catalog for unknown or stale client_version values.
4 tasks
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
Users signed in with ChatGPT/Codex auth reported their model list suddenly changed to
gpt-5.5-cca-wmandgpt-5.5-wm, both unusable. Root cause: Osaurus fetched the model catalog from the wrong endpoint with aclient_versionthe backend doesn't recognize.https://chatgpt.com/backend-api/codex/models(matching codex-rs'sCHATGPT_CODEX_BASE_URL) instead ofhttps://chatgpt.com/backend-api/models. The latter is the ChatGPT web-app catalog, which recently began serving internal experiment slugs (*-wm); those pass the^gpt-\d+\.\d+slug filter, fully replace the static fallback list, and then fail on/backend-api/codex/responses.client_versionis now a pinned Codex CLI semver constant (codexClientVersion = "0.144.1") instead ofosaurus-<bundle version>. The backend silently filters the catalog for unknown/stale versions, so the constant is documented with when to bump it./backend-api/codex/responsespath; only discovery changed.Added regression tests pinning the discovery URL path and the semver format of
client_version.Test plan
swift test --filter OpenAICodexOAuthServiceTests— 14/14 pass (includes 2 new regression tests)swift test --filter "RemoteProviderManagerTestConnectionTests|ProviderNetworkDiagnosticsTests"— 13/13 pass