You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
consult -m codex: bundled @openai/codex-sdk 0.146.1 rejects gpt-6-astra ("requires a newer version of Codex"); --model-id cannot reach current models #1880
consult -m codex --model-id gpt-6-astra fails with a provider 400 because consult runs Codex through the SDK bundled inside @cluesmith/codev (@openai/codex-sdk 0.146.1, which embeds @openai/codex 0.146.1), not the user's installed Codex CLI. The current model (gpt-6-astra) needs a newer Codex, so the lane cannot use it even after the user upgrades their CLI to 0.166.0.
Repro
$ codex --version
codex-cli 0.166.0 # user CLI, freshly upgraded
$ consult -m codex --model-id gpt-6-astra --prompt "Reply with the single word OK."
[CODEX] model: gpt-6-astra at medium reasoning effort (from --model-id)
{"type":"error","status":400,"error":{"type":"invalid_request_error","message":"The 'gpt-6-astra' model requires a newer version of Codex. Please upgrade to the latest app or CLI and try again."}}
The codex lane requested model "gpt-6-astra" (passed via --model-id).
Same result without --model-id when ~/.codex/config.toml has model = "gpt-6-astra" (the user's default).
$ cat $(npm root -g)/@cluesmith/codev/node_modules/@openai/codex-sdk/package.json | grep version
"version": "0.146.1",
$ npm view @openai/codex-sdk version
0.166.0
Running the same prompt directly with the CLI works: codex exec -m gpt-6-astra ....
Expected
Either (a) consult's codex lane tracks a current @openai/codex-sdk, or (b) consult lets the lane use the user's installed codex binary. The SDK already exposes codexPathOverride; consult does not surface it (no env var or config key; checked CODEX_MODEL, CODEX_PROFILE, CODEX_REASONING_EFFORT, CODEX_HARNESS).
Suggested fix
Bump @openai/codex-sdk in codev's dependencies on each release (0.166.0 today), and
Add consult.codexPath config / CODEX_PATH env that is passed to the SDK as codexPathOverride, defaulting to the bundled binary, so users can point the lane at a newer CLI when the bundle lags.
The error message should say which Codex version the lane is running (bundled 0.146.1) so the mismatch is obvious; today it only names the model id.
Hit again on 2026-11-09 with codev 3.3.7. Upgrading the machine's global @openai/codex to 0.167.0 does not help, because consult runs the bundled @openai/codex-sdk 0.146.1 (package.json pins ^0.146.0). A direct codex exec -m gpt-6-astra on the global 0.167.0 answers; consult -m codex --model-id gpt-6-astra still gets the 400 "requires a newer version of Codex". Fix asked: bump the bundled codex-sdk to a version that serves the current models. The owner has asked for a fix lane on this.
Activity
waleedkadous commentedon Nov 10, 2026
Hit again on 2026-11-09 with codev 3.3.7. Upgrading the machine's global
@openai/codexto 0.167.0 does not help, becauseconsultruns the bundled@openai/codex-sdk0.146.1 (package.json pins^0.146.0). A directcodex exec -m gpt-6-astraon the global 0.167.0 answers;consult -m codex --model-id gpt-6-astrastill gets the 400 "requires a newer version of Codex". Fix asked: bump the bundled codex-sdk to a version that serves the current models. The owner has asked for a fix lane on this.waleedkadous commentedon Nov 10, 2026
On it! Working on a fix now.
[Bugfix #1880] Fix: run a current Codex CLI in the codex lane, name i…
[Bugfix #1880] Thread: investigation, architect rulings, fix evidence
[Bugfix #1880] Run the codex binary preflight inside the guarded life…
[Bugfix #1880] CMAP: add codexPath to the fail-fast table; say why th…
Merge pull request #1889 from cluesmith/builder/bugfix-1880
[Spec 1658] Merge main (#1898 consult worktree project id, #1880 cons…
[Spec 1658] Review: M13 (consult.codexPath and a Windows .cmd shim, f…
[Spec 1658] Windows: the three #1880 tests that run a #!/bin/sh stand…
[Spec 1658] Review: late Windows intermittents (pir-1233 second sight…
[Spec 1658] spec-1280 Windows skip worded as a platform-runner skip; …