Repository navigation
fix: refresh Codex client version to expose newer models - #1870
Merged
AbirAbbas merged 4 commits intoOct 20, 2026
Merged
Conversation
Pin the backend fixture independently of the shared client version so reverting the advertised version hides newer models in both direct and translated listings. Preserve visibility filtering and cached reasoning metadata. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
AbirAbbas
approved these changes
Oct 20, 2026
AbirAbbas
left a comment
Collaborator
There was a problem hiding this comment.
Verified this one. 0.162.1 is a published Codex CLI release (openai/codex rust-v0.162.1, 2026-10-09, and on npm). With the same account and headers, a read-only catalog GET returns 3 visible models at client_version=0.144.1 and 7 at 0.162.1, which matches what you saw. Both doors (direct List and the translated GET /models) share the constant, and the User-Agent is still codeaf.
The existing C12 test compared the request to the same constant the code uses, so it would pass with any version. I added a catalog fixture that gates a visible model on 0.162.1 and checks it comes through both doors. It fails if only tokens.go is put back to dev. I also merged current dev. CI is green. Thanks!
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.
What changed
Codex discovery advertises client version
0.144.1, which can hide newer models available to the signed-in account. Update the shared version to0.162.1, covering both direct model listing and translated catalog requests on every platform.With the same account and token, changing only this version increased the visible list from three GPT-5.6 models to seven, adding GPT-6.1 Sol, GPT-6 Astra, GPT-6 Sol, and GPT-6 Luna. Model visibility filtering and account permissions are unchanged. This PR is independent of the SQLite fix in #1868.
How it was checked
go vet ./internal/codexauthandgit diff --checkpass.0600.make pr-readypassesgo build ./..., then stops atgo vet ./...on unmodified tests using Unix-only syscalls or test helpers excluded on Windows. The full local gate does not pass.Checklist
make changelog-check..github/known-red.txtentry.