Codex backend: GPT-6 Astra + codex-cli 0.153 support - #426
Merged
Conversation
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.
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.
What
>=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 intests/fixtures/codex_schema_meta.json.model/listis now requested withincludeHidden: true. Codex deliberately hides API-only entries such as gpt-6-astra from its default picker list; nerve digests the catalog intooffered(visible entries + the configuredcodex.modelsthe account actually serves),allowed(whole catalog + configured models) and per-model advertised reasoning efforts.codex.modelssetting (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.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.highgetshighfor amax/ultrarequest instead of a rejected turn. GPT-5.6 and GPT-6 Astra both advertise up toultra, so nothing changes for them.nerve codex doctorlists hidden catalog entries;scripts/check_codex_schema.py [codex-bin]andscripts/codex_smoke.py --bin/--effortcan 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 ongpt-6-astra, cost computed from the new pricing entry, clean disconnect.Rollout
min_versionmoves to 0.153.1, so upgrade the CLI before restarting:npm i -g @openai/codex@0.153.3, thennerve restart, thennerve codex doctor(expectgpt-6-astraunder Models). Frontend untouched — the picker reads/api/models.