Skip to content

fix(codex): every turn runs on the standard service tier - #11

Merged
eshatalov merged 1 commit into
mainfrom
claude/codex-service-tier-default-2ec2ad
Oct 18, 2026
Merged

eshatalov merged 1 commit into
mainfrom
claude/codex-service-tier-default-2ec2ad

Conversation

@eshatalov

Copy link
Copy Markdown
Owner

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-sol and gpt-6-luna ("priority"). Today only the TUI applies that default, and the user's config.toml (which can set service_tier = "ultrafast") never reaches the shadow home, so codex exec already 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_VALUE in codex-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:

  • Codex has accepted "default" since May 2026 (Honor client-resolved service tier defaults openai/codex#23537). I haven't checked what older versions do with it.
  • Live smoke on 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

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>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T23:39:23.886977Z 61a4835 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@eshatalov
eshatalov merged commit da55e5d into main Oct 18, 2026
1 check passed
@eshatalov
eshatalov deleted the claude/codex-service-tier-default-2ec2ad branch October 18, 2026 23:40
@eshatalov eshatalov mentioned this pull request Nov 22, 2026
eshatalov added a commit that referenced this pull request Nov 22, 2026
Version bump for 0.3.0. Minor rather than patch because this adds the
Antigravity CLI plugin over native ACP (#12).

Ships since 0.2.0:
- #11 every Codex turn runs on the standard service tier
- #12 add Antigravity CLI over native ACP

Done by Gemini 4 Neon in Antigravity.
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