Repository navigation
Description
ChatGPT users can miss newer models when npm is blocked or unreachable.
If the npm version lookup fails, discovery falls back to the bundled
Codex version, which can be below a newer model's minimum client version.
Discovery also makes an extra npm request on a cache miss. Successful
lookups are cached for six hours, so this does not happen on every listing.
Proposed fix
Use the same OpenClaw version we already send on Responses requests.
Accept calendar versions with a four-digit year of 2026 or later,
including versioned prereleases and build suffixes. Use 99.0.0 when
the version is unavailable or invalid, including 0.0.0, bare labels
and Codex-style versions.
Remove the npm lookup without changing Responses headers or Codex
binary selection.
Verification
The version-selection regression fails before the fix and passes after.
It includes 2027 and invalid-version cases. Related discovery, routing
and version-contract tests pass.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Nov 18, 2026
Codex review: this still needs some work.
Summary
Keep open: current source confirms that npm failure can hide newer subscription models, but replacing the published-Codex version with a calendar version changes an explicitly accepted discovery policy.
Reproducibility: Current source deterministically sends client_version=0.169.0 after npm failure, and existing contract coverage establishes omission above that version; this review ran no tests or live account reproduction.
Maintainer decision needed
Next step
Decide the discovery-version policy, then establish a failing catalog regression where npm is unavailable and an account model requires a version above the bundled pin.
Review details
Best possible solution:
Provide npm-independent model discovery under an explicitly approved visibility policy, with actionable errors when the selected harness cannot execute a listed model.
Do we have a high-confidence way to reproduce the issue?
Current source deterministically sends client_version=0.169.0 after npm failure, and existing contract coverage establishes omission above that version; this review ran no tests or live account reproduction.
Is this the best way to solve the issue?
Removing the registry dependency addresses the reported failure directly, but the exact calendar-version and sentinel rules need approval and account-level validation before they replace the published-version policy.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 8e08f83454cf.
Label changes
Label changes:
clawsweeper:fix-shape-clear: Current issue advisory state selects this label.Label justifications:
P2: Registry failure can omit newer subscription models while older models remain available; the report does not establish a blocked first useful run.impact:auth-provider: The affected boundary controls authenticated provider discovery and available model choices.Evidence reviewed
Acceptance criteria:
What I checked:
extensions/openai/codex-client-version.ts:59, 8e08f83454cf)extensions/openai/openai-provider-catalog.ts:216, 8e08f83454cf)src/plugins/contracts/provider-live-listing.contract.test.ts:169, 8e08f83454cf)src/plugins/AGENTS.md:48, 1680f5450480)extensions/openai/codex-client-version.ts:10, c9f03ee9798c)Likely related people:
extensions/openai/codex-client-version.ts)extensions/openai/codex-client-version.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed November 18, 2026, 5:27 PM ET / 22:27 UTC.