Repository navigation
Refuse an older Codex by its version, and show which Codex doctor found - #84
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
To use Codex here, create an environment for this repo. |
An older codex earlier on PATH broke every Codex call: it rejected `codex mcp list --json`, so the run was refused with a sentence about MCP servers, while doctor still called the route servable. - Before anything else, the runtime asks `codex --version`. A Codex older than 0.160.1, the version this behaviour was verified on, or one that names no version, is refused for the invocation with a reason that names the version and where it was found (GRIDA_FX_TOOL_CODEX, PATH or the ChatGPT app), never its path. - doctor prints a `program` line per installed program: its path, where it was found, and Codex's version. Codex's routes say `too old (codex <v>; FX needs 0.160.1+)` or `no version (codex)`, so `doctor <target>` exits 1 as a live run would refuse. - Finding a program now returns where it was found, and the version comparison is shared with Grok Build's check (`installed::Version`). - spec/providers.md §9.6 first; the guide, llms.txt, the onboarding reference and AGENT_READINESS follow. Part (a) of #73. Preferring a newer copy over an older one on PATH, (b), is a separate spec decision and is not included.
softmarshmallow
force-pushed
the
codex-version-check
branch
from
October 13, 2026 16:20
33a0bbb to
b6ad209
Compare
This branch was successfully deployed
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.
Part (a) of #73. An older
codexearlier onPATHbroke every Codex call. It rejectedcodex mcp list --json, so the run was refused with a sentence about MCP servers, anddoctorstill called the route servable.What changes
Codex's MCP servers could not be listed, so they cannot be turned offCodex 0.150.0 (from PATH) is older than 0.160.1: update it, or set GRIDA_FX_TOOL_CODEX to a newer one, refused for the whole run before anything else startsCodex (from PATH) did not name its version: update it to 0.160.1 or later, or set GRIDA_FX_TOOL_CODEX to a newer onedoctorroute … imagegen@codex servableprogram codex <path> (PATH, 0.150.0)line, androute … imagegen@codex too old (codex 0.150.0; FX needs 0.160.1+)doctor <target>codex --versionfirst (30 s). It reads the firstX.Y.Zword of the output (codex-cli 0.160.1) and compares it with 0.160.1, the version this behaviour was verified on.GRIDA_FX_TOOL_CODEX,PATHorthe ChatGPT app), never its path, because refusals are recorded.doctoris terminal output, so it prints the path, as itstoollines already do.doctorprints aprogramline for each program the user installs. Grok Build's line has no version: Grok Build reports it only once started, where it is already checked.installed::Versionholds the version comparison, which Grok Build's existing check now uses too.llms.txt, the onboarding reference and AGENT_READINESS follow.Not included
PATH. That changes the lookup order, so it is a spec decision, and Codex: should a newer codex win over an older one earlier on PATH? #73 stays open for it.doctor.Checks
cargo fmt --check,cargo clippy --all-targets -- -D warningscargo test --workspace --no-fail-fast: everything passes except two tests that also fail without this change:main;codex --versionoutput is read;doctor'sprogramlines and itstoo old/no versionstates, including exit 1 fordoctor <target>.tools/check_spec.py,tools/check_llms.pydoctorrun by hand with a fake oldcodexplaced first onPATH:too old (codex 0.150.0; FX needs 0.160.1+). No live call was made.