Skip to content

Codex backend: GPT-6 Astra + codex-cli 0.153 support - #426

Merged
pufit merged 1 commit into
mainfrom
pufit/codex-gpt-6-astra
Sep 5, 2026
Merged

Codex backend: GPT-6 Astra + codex-cli 0.153 support#426
pufit merged 1 commit into
mainfrom
pufit/codex-gpt-6-astra

Conversation

@pufit

@pufit pufit commented Sep 5, 2026

Copy link
Copy Markdown
Member

What

  • Re-pin the Codex app-server contract to codex-cli 0.153.3 (tested range >=0.153.1,<0.154.0). The schema diff vs 0.144.1 is purely additive for every method/notification nerve uses (0 removed fields); new canonical hash in tests/fixtures/codex_schema_meta.json.
  • model/list is now requested with includeHidden: true. Codex deliberately hides API-only entries such as gpt-6-astra from its default picker list; nerve digests the catalog into offered (visible entries + the configured codex.models the account actually serves), allowed (whole catalog + configured models) and per-model advertised reasoning efforts.
  • New codex.models setting (default [gpt-6-astra]; [] opts out). Hidden entries are opt-in by name, so internal previews / reviewer models never reach the picker while any catalog entry stays a legal session model.
  • Default pricing for gpt-6-astra ($10 / $1 cached / $50 per 1M tokens). The >272K-token long-context tier is not modelled (usage arrives per turn, not per request) — documented in code and docs.
  • Reasoning effort is clamped to what the serving model's catalog entry advertises: an entry that stops at high gets high for a max/ultra request instead of a rejected turn. GPT-5.6 and GPT-6 Astra both advertise up to ultra, so nothing changes for them.
  • nerve codex doctor lists hidden catalog entries; scripts/check_codex_schema.py [codex-bin] and scripts/codex_smoke.py --bin/--effort can verify a downloaded CLI before it is installed.

Verification

  • pytest tests/ — 3383 passed.
  • scripts/check_codex_schema.py → contract OK against 0.153.3 (fails against 0.144.1, as intended).
  • scripts/codex_smoke.py --bin <codex 0.153.3> --auth api_key --model gpt-6-astra --effort max → real turn completed on gpt-6-astra, cost computed from the new pricing entry, clean disconnect.

Rollout

min_version moves to 0.153.1, so upgrade the CLI before restarting: npm i -g @openai/codex@0.153.3, then nerve restart, then nerve codex doctor (expect gpt-6-astra under Models). Frontend untouched — the picker reads /api/models.

Generated by Nerve

Re-pin the app-server contract to codex-cli 0.153, ask model/list for
hidden entries, add codex.models (opt-in hidden models), Astra pricing
and catalog-based effort clamping.
@pufit
pufit merged commit 3cb99ab into main Sep 5, 2026
3 checks passed
@pufit
pufit deleted the pufit/codex-gpt-6-astra branch September 5, 2026 13:51
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.

1 participant