Fix OpenAI Codex model discovery for RLM subagents - #718
Closed
nickadminroot wants to merge 2 commits into
Closed
Conversation
zhengr
pushed a commit
to zhengr/prime-agent
that referenced
this pull request
Aug 8, 2026
nickadminroot
force-pushed
the
fix/codex-discovery-client-version
branch
from
August 8, 2026 12:30
5daa596 to
091c2f9
Compare
Contributor
|
Thank you for the report and proposed work. This root cause is now covered by maintainer-owned stacked PR #1164, authored independently from We did not inspect or reuse this PR's diff, branch, commits, implementation code, or tests; its public description/comments were used only as a bug report. To keep one review surface, this PR is superseded by #1164 and is being closed. The complete review stack is #1158–#1165. It is being left unmerged for human review after CI and review-bot findings are cleared. |
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.
Summary
Fixes #639.
Validation
npx tsx ../../node_modules/vitest/dist/cli.js --run test/suite/regressions/639-codex-discovery-client-version.test.tsnpm run checkclient_version=0.144.0returned Luna, Sol, and TerraNote
Low Risk
Narrow change to the Codex discovery query parameter plus a regression test; no auth, inference, or data-path changes.
Overview
Fixes RLM/subagent model discovery for OpenAI Codex when GPT-5.6 models (e.g. Luna, Sol, Terra) were missing from the executable catalog.
OpenAI Codex’s
/modelsendpoint filters the catalog byclient_version, and it expects a Codex CLI semver, not Prime Agent’s app version. The discovery URL now sendsclient_version=0.144.0(documented as the first catalog version that advertises GPT-5.6) instead of the agentVERSION.A regression test asserts the discovery
fetchuses0.144.0and thatfindRlmModelscan surface a matching Codex model.Reviewed by Cursor Bugbot for commit 5daa596. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Fix OpenAI Codex model discovery by pinning
client_versionto0.144.0The Codex catalog gates GPT-5.6 model availability by the Codex CLI semver passed as
client_versionin the discovery URL. Previously, the agent's own version was used, which caused GPT-5.6 models to be omitted from RLM model discovery. The fix pinsclient_versionto0.144.0(the first catalog version advertising GPT-5.6) inmodel-registry.ts. A regression test in639-codex-discovery-client-version.test.tsverifies the correct version is sent.Macroscope summarized 091c2f9.