Skip to content

fix: add GPT-5.6 Sol/Terra/Luna to openai-codex models - #58

Open
droopy-snoot wants to merge 1 commit into
JuliusBrussee:mainfrom
droopy-snoot:fix/codex-gpt-5.6-models
Open

fix: add GPT-5.6 Sol/Terra/Luna to openai-codex models#58
droopy-snoot wants to merge 1 commit into
JuliusBrussee:mainfrom
droopy-snoot:fix/codex-gpt-5.6-models

Conversation

@droopy-snoot

Copy link
Copy Markdown

Fixes #54.

Root cause

The openai-codex model list in packages/ai/scripts/generate-models.ts is a hardcoded static list (not sourced from models.dev), so adding new ids there is safe on its own — I confirmed the generator runs cleanly with the 3 new entries added.

The actual bug is in two reasoning-capability helpers that hardcode a gpt-5.2/gpt-5.3/gpt-5.4/gpt-5.5 prefix whitelist and never got updated for gpt-5.6:

  • supportsXhigh() in packages/ai/src/models.ts — would silently report that the new gpt-5.6 models don't support xhigh thinking.
  • clampReasoningEffort() in packages/ai/src/providers/openai-codex-responses.ts — would fail to clamp "minimal" reasoning effort to "low" for the new models, which the Codex API requires for this model family (same requirement as gpt-5.2/5.3/5.4).

Changes

  • Added gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna to the codex model list in generate-models.ts and regenerated the corresponding entries in models.generated.ts.
  • Extended supportsXhigh() and clampReasoningEffort() to recognize the gpt-5.6 prefix.
  • Refreshed a stale doc comment in packages/agent/src/types.ts that already listed an outdated set of xhigh-capable models (didn't even include gpt-5.4/5.5), pointing it at supportsXhigh() instead so it can't drift again.

Testing

  • npx tsgo -p tsconfig.build.json --noEmit in packages/ai — clean.
  • npx vitest --run in packages/ai — 173 passed, 609 skipped; the only failure (lazy-module-load.test.ts) is a pre-existing Windows/Node ESM URL-scheme issue in an environment probe unrelated to models, reproducible on main before this change.

Adds the three new OpenAI Codex model ids (gpt-5.6-sol, gpt-5.6-terra,
gpt-5.6-luna) to the hardcoded codex model list in generate-models.ts
and to the generated catalog.

The reasoning-capability helpers hardcode a gpt-5.2/5.3/5.4/5.5 prefix
whitelist and did not recognize gpt-5.6:

- supportsXhigh() in packages/ai/src/models.ts would not report xhigh
  thinking support for the new models.
- clampReasoningEffort() in openai-codex-responses.ts would not clamp
  minimal effort to low for the new models, which the Codex API
  requires for this model family.

Extended both to include gpt-5.6, and refreshed a stale doc comment
in packages/agent/src/types.ts that already listed an outdated set of
xhigh-capable models.

Fixes JuliusBrussee#54
@droopy-snoot droopy-snoot changed the title fix(ai): add GPT-5.6 Sol/Terra/Luna to openai-codex models fix: add GPT-5.6 Sol/Terra/Luna to openai-codex models Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add GPT-5.6 Sol, Terra, and Luna to Codex models

1 participant