fix(coding-agent): send a supported codex client_version in model discovery - #831
fix(coding-agent): send a supported codex client_version in model discovery#831MingTeer wants to merge 2 commits into
Conversation
…covery Model discovery against the ChatGPT codex backend passed the prime-agent package version as client_version; the backend gates the catalog by codex CLI version and returned an empty catalog, hiding all openai-codex models from find_models and rlm subagents. An empty catalog is now treated as a discovery failure instead of being cached as a valid result. fixes PrimeIntellect-ai#702
|
Validated this fix independently against current Environment:
Evidence:
This confirms both the catalog fix and the real Sol-to-Luna RLM path without modifying the globally installed runtime. |
…t-version # Conflicts: # packages/coding-agent/CHANGELOG.md
|
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. |
Summary
ModelRegistry.getExecutableModels()passed the prime-agent package version asclient_versionwhen discovering ChatGPT codex models. The backend gates the catalog by codex CLI version, so0.7.0read as an ancient client and returned{"models": []}, hiding everyopenai-codex/*model fromfind_modelsandrlm()subagent spawns, which then failed with the misleading "unavailable, unauthenticated, or expired" error.Changes
OPENAI_CODEX_CLIENT_VERSION = "0.146.1") asclient_versioninstead of the prime-agent package version, with a comment noting the floor must be bumped if the catalog ever comes back empty.test/suite/regressions/702-codex-client-version.test.ts).Verification
4649-subagent-model-selectionsuite passes (12/12)npm run checkcleanopenai-codex/*models appear infind_modelsand subagent spawns succeed with a valid OAuth credentialFixes #702
Note
Fix OpenAI Codex model discovery to send a supported
client_versionVERSIONwith a hardcoded Codex CLI version ("0.146.1") in theclient_versionquery parameter ofopenAICodexModelsUrl, since the backend gates access by Codex CLI version.models: []) as a discovery failure rather than caching it as a successful empty result, causing callers to fall back to excluding Codex models until a non-empty discovery succeeds.Macroscope summarized c9d1377.