Skip to content

Codex: GPT-6.2 Astra and Sol in the model menu, tested range up to 0.171 - #740

Merged
pufit merged 1 commit into
mainfrom
pufit/codex-gpt-6-2
Nov 21, 2026
Merged

pufit merged 1 commit into
mainfrom
pufit/codex-gpt-6-2

Conversation

@pufit

@pufit pufit commented Nov 21, 2026

Copy link
Copy Markdown
Member

GPT-6.2 Astra and GPT-6.2 Sol could not appear in Nerve's model menu, for two reasons:

  • OpenAI's Codex catalog serves them only to codex-cli 0.166.0 or newer (minimal_client_version in the catalog), and Nerve refused every Codex from 0.165.0 up.
  • The default menu (codex.models unset) still named GPT-6 Astra and the GPT-5.6 tiers.

Changes

  • Tested Codex window: >=0.153.1, <0.172.0 (was <0.165.0).

    • The app-server schema of codex-cli 0.171.0, the latest release, keeps every method and notification that Nerve uses.
    • TurnStartParams, ThreadStartParams, ThreadResumeParams and the model/list entries are unchanged. The other changes in shapes that Nerve uses are additive or optional; the details are in the notes of tests/fixtures/codex_schema_meta.json.
    • The schema fingerprint is refreshed.
  • Default menu: again the newest model of each tier: GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra, GPT-6 Luna.

    • A Codex CLI older than 0.166.0 is served no GPT-6.2 and shows the other tiers.
    • codex.model stays gpt-5.6-sol: the catalog serves it to every Codex version in the window.
  • Prices for the four models, in $ per 1M tokens (standard tier, up to 272K input tokens). The other entries are unchanged.

    Model Input Cached input Output
    GPT-6.2 Astra 8 0.40 40
    GPT-6.2 Sol 2 0.10 10
    GPT-6.1 Terra 1 0.05 5
    GPT-6 Luna 0.10 0.01 0.50

Testing

  • scripts/check_codex_schema.py against codex-cli 0.171.0: contract OK.
  • Full backend suite: 10,783 passed, 38 skipped.
  • Live, on an isolated instance with codex-cli 0.171.0 signed in with an API key:
    • The catalog lists gpt-6.2-astra and gpt-6.2-sol.
    • GET /api/models offers gpt-5.6-sol (codex.model), gpt-6.2-astra, gpt-6.2-sol, gpt-6.1-terra and gpt-6-luna.
    • One turn on each GPT-6.2 model answered and recorded cost_usd at the new prices. For example, 23,937 input and 5 output tokens on GPT-6.2 Sol came to $0.047924.

🤖 Generated with Claude Code

OpenAI's Codex catalog serves GPT-6.2 Astra and GPT-6.2 Sol only to
codex-cli 0.166.0 or newer, and Nerve refused every Codex from 0.165.0
up, so the two models could not appear in the model menu.

The default tested window is now >=0.153.1, <0.172.0. The app-server
schema of codex-cli 0.171.0, the latest release, keeps every method and
notification that Nerve uses. TurnStartParams, ThreadStartParams,
ThreadResumeParams and the model/list entries are unchanged; the other
changes in shapes that Nerve uses are additive or optional. The schema
fingerprint and its notes are refreshed.

With codex.models unset, the menu is again the newest model of each tier:
GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra and GPT-6 Luna. A Codex CLI
older than 0.166.0 is served no GPT-6.2 and shows the other tiers.
codex.model stays gpt-5.6-sol: the catalog serves it to every Codex
version in the window.

Prices for the four models, in $ per 1M tokens (standard tier, up to 272K
input tokens; input / cached input / output): GPT-6.2 Astra 8 / 0.40 / 40,
GPT-6.2 Sol 2 / 0.10 / 10, GPT-6.1 Terra 1 / 0.05 / 5, GPT-6 Luna
0.10 / 0.01 / 0.50. The other entries are unchanged.
@nerveai

nerveai commented Nov 21, 2026

Copy link
Copy Markdown

Nerve PR review · ✅ Ready to merge

Widens the tested Codex CLI window to <0.172.0 and moves the default menu and prices to the GPT-6.2 / 6.1 / 6 tiers. According to the PR, the catalog serves GPT-6.2 only to codex-cli ≥0.166, so this change is what makes GPT-6.2 usable in Nerve. The approach follows the earlier range bumps. Keeping codex.model on gpt-5.6-sol is right, because preflight fails when the account is not served that model (nerve/agent/backends/codex/backend.py:511). I re-derived the fingerprint from the rust-v0.171.0 protocol schema and got the PR's hash. Compared with 0.164.0, no definition, method or notification was removed, and TurnStartParams, ThreadStartParams, ThreadResumeParams and Model are unchanged. app-server and exec --cyber-access-program are both still there. This PR supersedes #739 (<0.170.0; the same five files, conflicting), so merging it makes #739 redundant.

Completeness: new tests pin both edges of the window and require a price for every default menu model. docs/config.md is updated, and nothing else hard-codes the range.

Worth considering:

  • A CLI from 0.153.1 to 0.165.x is still inside the window, but on it the default menu loses its Astra tier. gpt-6-astra is no longer named (nerve/config.py:3672), and catalog() offers only named models (backend.py:287-290). Existing Astra sessions keep running (backend.py:368-373). One line in the release notes would cover it.

Checked: full suite in an offline sandbox at f338102 (3 chunks): 10768 passed, 39 skipped; test_slack_integration.py excluded (hangs offline on main too); CI green; schema hash and method diff against openai/codex rust-v0.164.0…rust-v0.171.0; read the Codex catalog, model validation, version check and nerve codex doctor; prices not checked against OpenAI's list · automated review by nerveai — mention @nerveai to ask a follow-up.

@alex-clickhouse alex-clickhouse left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved automatically on a review request from pufit. No manual code review was done.

@pufit
pufit merged commit 068bcb6 into main Nov 21, 2026
6 checks passed
@pufit
pufit deleted the pufit/codex-gpt-6-2 branch November 21, 2026 05:05
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.

3 participants