Skip to content

fix(codex): show gpt-6 models, add a Codex personal-MCP install command - #310

Merged
artempartos merged 2 commits into
developfrom
artempartos/aws-vault-codex-model
Sep 24, 2026
Merged

artempartos merged 2 commits into
developfrom
artempartos/aws-vault-codex-model

Conversation

@artempartos

@artempartos artempartos commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Why

Users report the newest Codex models are missing from the picker. GET /backend-api/codex/models hides every model whose minimal_client_version is above the client_version we send, and Codex::Api::CLIENT_VERSION stayed at 0.147.0 when #303 pinned the image to 0.156.1.

Probed prod with a real Codex credential (read-only, no refresh):

client_version listed models
0.147.0 (prod today) gpt-5.6-sol / terra / luna, gpt-5.5
0.156.1+ + gpt-6-astra (min 0.153.0), + gpt-6-sol, + gpt-6-luna (min 0.155.0)

Sessions already run CLI 0.156.1, so the models work — we just never asked for them.

What

  • CLIENT_VERSION → 0.156.1.
  • The fixed >= 0.144.0 floor test is what let this drift through. It is replaced by a parity test: CLIENT_VERSION must equal ARG CODEX_VERSION in docker/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:

export FLOW_MCP_TOKEN="amcp_…"
codex mcp add flow --url https://<host>/mcp --bearer-token-env-var FLOW_MCP_TOKEN

Codex has no flag for a literal bearer token; --bearer-token-env-var is the only HTTP auth option (checked against codex 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.md and the bundled Docs/data/pages/mcp.md) are updated.

Verification

tsc, eslint and prettier pass on the host. Ruby checks and vitest can't run from this worktree; CI is the verification.

🤖 Generated with Claude Code

artempartos and others added 2 commits September 24, 2026 21:42
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]>
@artempartos artempartos changed the title fix(codex): claim the image's CLI version so gpt-6 models show up fix(codex): show gpt-6 models, add a Codex personal-MCP install command Sep 24, 2026
@artempartos
artempartos merged commit 9ac35cb into develop Sep 24, 2026
7 checks passed
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.

1 participant