Repository navigation
feat(models): resolve any unknown openai-codex id, not only gpt-5.3-codex - #156
Merged
Merged
Conversation
…odex OpenAI ships new Codex slugs (gpt-5.4-mini, gpt-5.5, gpt-6-astra, ...) faster than the bundled catalog follows, and retires the old ones for ChatGPT-account users. Measured 2026-09-07 on a gateway with a valid openai-codex OAuth profile: every id the catalog knows (gpt-5.1-codex-mini, gpt-5.2, gpt-5.2-codex, gpt-5.3-codex, gpt-5.3-codex-spark, gpt-5.1-codex-max) is answered with "not supported when using Codex with a ChatGPT account", and every current id is "Unknown model". models.providers cannot bridge the gap: the config schema has no openai-codex-responses api value, so an entry restart-loops the gateway. The forward-compat fallback that special-cased gpt-5.3-codex now applies to any openai-codex id the registry does not know: clone the newest bundled codex template (gpt-5.3-codex, then gpt-5.2-codex), else synthesize the model against https://chatgpt.com/backend-api with the openai-codex-responses api. Every openai-codex id speaks that same API, and a wrong id is not hidden — OpenAI answers it with an explicit refusal. Co-Authored-By: Claude Fable 5.1 <[email protected]>
cryptolir
added a commit
that referenced
this pull request
Sep 7, 2026
…(gpt-5.4-mini on the ChatGPT subscription) (#157) Co-authored-by: Liran Peretz <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
cryptolir
added a commit
that referenced
this pull request
Sep 7, 2026
…is v2026.9.7.2 (#158) The Codex forward-compat build (#156) reused the tag v2026.9.7.1, pushing over the morning Node 24 build (0057bbe). Repaired: new build re-tagged and registered as v2026.9.7.2, v2026.9.7.1 pushed back to its original digest, registry and release ledger verified in agreement. testingbot was unaffected. Co-authored-by: Liran Peretz <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]>
This was referenced Sep 28, 2026
cryptolir
added a commit
that referenced
this pull request
Sep 29, 2026
…x model test (#169) * fix(browser): stop 500ing every request on Node 24; update stale codex model test Node 24 defines IncomingMessage#signal as a getter-only property, so the browser Express middleware assignment req.signal = ctrl.signal threw and every request to the browser control server / sandbox bridge got HTTP 500. Shadow it with an own property instead. This was 19 of the 20 real checks (node, test) failures on main since #154 moved CI to Node 24. The 20th: #156 made any unknown openai-codex id resolve via forward-compat, so the test that expected gpt-4.1-mini to error now asserts it resolves. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(status): record #169 Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Liran Peretz <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Problem
The ChatGPT-subscription path (
openai-codex/*) has no usable model on the fleet build. Measured 2026-09-07 onprojectmanager(2ndClaw), whoseopenai-codex:defaultOAuth profile is valid (token expires 2026-09-17):Unknown model(not in the bundled registry)models_cache.json)Unknown modelmodels.providerscannot add them:zod-schema.core.tsallows sevenapivalues andopenai-codex-responsesis not one of them — an entry makes the gateway refuse to start (tried; restart loop, reverted).Change
resolveOpenAICodexGpt53FallbackModelspecial-cased exactlygpt-5.3-codex. It is nowresolveOpenAICodexForwardCompatModeland covers anyopenai-codexid the registry does not know: clone the newest bundled codex template (gpt-5.3-codex, thengpt-5.2-codex), else synthesize againsthttps://chatgpt.com/backend-apiwithapi: openai-codex-responses— the same body the 5.3 case already produced. Every openai-codex id speaks that one API, and a wrong id is not hidden: OpenAI answers it with an explicit refusal in the reply.Other providers are untouched (test asserts
openai/gpt-5.4-ministill resolves to nothing here).Tests
src/agents/model-forward-compat.test.ts: +3 (template clone, synthesis with empty registry, other-provider/blank-id negative). 6/6 pass.Rollout
build-and-push.sh→ pilot onprojectmanageronly (manualOPENCLAW_IMAGE+--force-recreate, verify the dist carries the change before recreating) → setopenai-codex/gpt-5.4-miniwith Venice fallbacks → real turn. Fleet roll is a separate owner decision.Separate finding, not fixed here
The Venice fallback does not engage on these refusals: they arrive as a 200-shaped reply body, so
fallbackscannot rescue a misconfigured Codex primary.🤖 Generated with Claude Code