Repository navigation
fix(codex): every turn runs on the standard service tier - #11
Merged
Merged
Conversation
Codex's model catalog can name a faster, pricier tier as a model's default; codex exec doesn't apply it today, but nothing guarantees that. Every turn now passes `-c service_tier=default`, codex's sentinel for standard routing, on both fresh and resumed turns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Codex's model catalog can name a faster, pricier service tier as a model's default. The catalog bundled in codex 0.163 does this for
gpt-6-solandgpt-6-luna("priority"). Today only the TUI applies that default, and the user'sconfig.toml(which can setservice_tier = "ultrafast") never reaches the shadow home, socodex execalready runs on the standard tier. Nothing guarantees it stays that way: if codex starts resolving the catalog default outside the TUI, or OpenAI changes the server catalog, subagents would start spending extra quota without anyone noticing.The fix: every codex turn, fresh or resumed, now passes
-c service_tier=default."default"is codex's own sentinel for "the user intentionally picked no tier, so catalog defaults must not apply" (SERVICE_TIER_DEFAULT_REQUEST_VALUEincodex-rs/protocol). It is filtered out of the actual API request. The caller still can't choose a tier.src/plugins/codex.ts: the flag, plus a note in the header.test/codex.test.ts: checks the spawn argv for fresh and resumed turns, offline. Fails without the flag.Reviewer notes:
"default"since May 2026 (Honor client-resolved service tier defaults openai/codex#23537). I haven't checked what older versions do with it.gpt-6-luna/low passed (2 turns: launch and resume). Both spawn argvs carry the flag, and the codex rollout records"service_tier":"default".Done with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code