Repository navigation
fix(codex): show gpt-6 models, add a Codex personal-MCP install command - #310
Merged
Merged
Conversation
The Codex models endpoint hides every model whose minimal_client_version is above the client_version we send. CLIENT_VERSION stayed at 0.147.0 when #303 pinned the image to 0.156.1, so the picker never offered the gpt-6 family (astra needs 0.153.0, sol/luna 0.155.0) even though sessions run a CLI that supports it. Verified against prod with a real token: 0.147.0 returns only gpt-5.x, 0.156.1 adds gpt-6-astra/sol/luna. Replace the fixed 0.144.0 floor test with a parity test against CODEX_VERSION in docker/codex/Dockerfile, so an image bump that forgets CLIENT_VERSION fails CI instead of hiding models. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
Codex reads a streamable-HTTP bearer token only from an environment variable (`--bearer-token-env-var`), so the Profile -> MCP snippet exports FLOW_MCP_TOKEN and then runs `codex mcp add`. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
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.
Why
Users report the newest Codex models are missing from the picker.
GET /backend-api/codex/modelshides every model whoseminimal_client_versionis above theclient_versionwe send, andCodex::Api::CLIENT_VERSIONstayed at0.147.0when #303 pinned the image to0.156.1.Probed prod with a real Codex credential (read-only, no refresh):
client_version0.147.0(prod today)0.156.1+Sessions already run CLI 0.156.1, so the models work — we just never asked for them.
What
CLIENT_VERSION→0.156.1.>= 0.144.0floor test is what let this drift through. It is replaced by a parity test:CLIENT_VERSIONmust equalARG CODEX_VERSIONindocker/codex/Dockerfile, so the next image bump that forgets it fails CI.Codex install command for the personal MCP token
Profile → MCP now offers a Codex snippet next to the Claude Code one, shown only while the one-time token is on screen:
Codex has no flag for a literal bearer token;
--bearer-token-env-varis the only HTTP auth option (checked againstcodex mcp add --help, 0.156.x). So the variable must stay exported wherever codex runs, and the UI hint says so. Both docs copies (docs/user-guide/mcp.mdand the bundledDocs/data/pages/mcp.md) are updated.Verification
tsc,eslintandprettierpass on the host. Ruby checks and vitest can't run from this worktree; CI is the verification.🤖 Generated with Claude Code