Skip to content

feat(native-chat): offer Codex Ultrafast as a speed choice - #26962

Merged
brennanb2025 merged 11 commits into
mainfrom
brennanb2025/codex-ultrafast-speed
Oct 10, 2026
Merged

brennanb2025 merged 11 commits into
mainfrom
brennanb2025/codex-ultrafast-speed

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 22 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​641 $\color{#cf222e}{\Huge{\mathbf{−}}}$​583 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​58
Prod 35 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​413 $\color{#cf222e}{\Huge{\mathbf{−}}}$​507 $\color{#cf222e}{\Huge{\mathbf{−}}}$​94

ELI5

Codex now offers a faster-than-Fast speed, Ultrafast, for some models (GPT-6.1 Sol) on eligible accounts. Native Codex chats in Orca could only switch Fast on or off, so there was no way to pick Ultrafast. Codex chats now have a Speed choice listing Standard plus every speed tier Codex offers for the chosen model — Fast and Ultrafast on GPT-6.1 Sol.

What Changed

Before: a Codex chat's options menu had a Fast mode on/off switch. Ultrafast was unreachable.

After: the menu has a Speed section: Standard, then each tier Codex lists for the selected model and account, with Codex's own name and description ("Fast — 2x speed, increased usage", "Ultrafast — …"). The composer pill shows the picked tier and nothing for Standard, as Fast off did. The pick is remembered for the next chat like model and effort. Switching to a model that does not list the picked tier drops back to Standard. Claude keeps its Fast toggle.

Mechanism:

  • The chat saves the Codex tier id itself under serviceTier (default, priority, ultrafast), the same key Codex takes on turn/start, and every message sends it as-is. Codex itself leaves out a tier the model does not list, so nothing has to be looked up at send time. A tier Codex reports for the chat (for example Flex from the user's own Codex config, which Codex accepts for every model without listing it) is shown as reported and stays pickable. One rule decides which tiers a model offers: Standard, the tiers it lists, and the chat's reported tier when no model lists it. A picked or reported tier the current model does not offer falls back to Standard, since Codex would leave it out anyway, so a configured Flex is left alone but Ultrafast becomes Standard on a model without it.
  • Each model in Codex's catalog now carries its serviceTiers (id, name, description), saved with the rest of the model catalog. The picker builds Speed from that list.
  • This replaces Orca's previous Fast design, which saved Fast on/off and looked up the Fast tier id in a per-model map at every send. That map (fastModeTierByModel), the send-time lookup and the legacy reconcile code are deleted.
  • The wire gains two optional fields: a model's serviceTiers and the chat's current serviceTier. A client shows Speed when a model lists serviceTiers and the Fast toggle otherwise (Claude, or an older host).

Why

Ultrafast is a third tier, so a yes/no switch cannot hold it. Saving the tier id Codex lists, and sending it back unchanged, is the common pattern for this control and the least code: no second copy of Codex's tier list to keep in sync, and no translation between a speed name and an id.

Differences from the common pattern, labeled:

  • Intended: the host still reports Fast on/off (derived from the model's tier named Fast) and accepts a Fast on/off change, so an older phone build keeps its Fast toggle. Any other tier shows there as neither on nor off.
  • Intended: a Fast on/off saved by an older Orca build is not carried into the new setting. Native chat has no real users yet; such a chat starts on Codex's default tier.

Linked Issue

None; requested directly. UI follow-up for these pickers: #26970.

Visual Proof

Captured from hidden, isolated dev builds (main at 7e621d5a4a7 vs this PR at aaa4d3d69d4) with a stand-in Codex that lists GPT-6.1-Sol with Fast (priority) and Ultrafast (ultrafast), and GPT-6-Luna with Fast only. The stand-in's reply names the tier each message arrived with. (A stand-in is needed because the maintainer's own account does not list Ultrafast.)

Before: GPT-6.1-Sol options — Fast mode on/off onlyAfter: same model — Speed: Standard / Fast / Ultrafast

Picked Ultrafast and sent hello, then picked Fast and sent again: the messages reached Codex on ultrafast and priority (the stand-in's request log agrees: serviceTier: "ultrafast", then "priority").

After: Ultrafast then Fast

Switched to GPT-6-Luna, which lists only Fast: Speed offers Standard / Fast, and Fast stays picked because Luna lists the same tier.

After: Luna has no Ultrafast

Testing

  • orca-ci-checks (lint, code quality, localization, typecheck): 23/23 pass.

  • 32,600+ tests across Codex, native-chat session wire, model catalog, shared and renderer native-chat code pass, including new tests for: every advertised tier listed by id, Ultrafast sent as its id, a saved tier sent before any listing arrives or while it fails, refusing an unlisted tier and dropping to Standard on a model switch, reading the thread's reported tier (an unlisted Flex is kept), the older-catalog Fast tier beside an empty tier list, older-client Fast on/off, the catalog keeping tiers across a restart, Speed replacing the Fast toggle, the pill label, and seeding a remembered tier.

  • Mobile unit tests run in CI (not run locally).

  • Platforms: macOS locally. The change is host-side catalog and option logic with no platform-specific paths; SSH hosts run the same Codex adapter.

  • I manually tested these changes locally (see Visual Proof: macOS, hidden dev builds driven over CDP)

  • Automated tests added/updated

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

  • Wire compatibility: both new fields are optional. An older client with a newer host keeps its Fast toggle (turning Fast on needs the model's Fast tier to be known, and is refused with a message otherwise); a newer client with an older host sees no serviceTiers and shows the Fast toggle.
  • An older client toggling Fast on a Codex chat that is not running is refused, because a saved Fast on/off is no longer a Codex setting.
  • Known gap, left for a follow-up: when nothing was picked, Orca shows Standard for a tier from the user's Codex config that the chat's model cannot use, and keeps Standard for that chat after switching to a model that could. Codex's terminal app re-applies the configured tier on every switch and also starts each model on its own default tier, which Orca does not read today (the same is true of the Fast toggle on main). Both are about which tier applies when the user picked none, so they belong in one change.

Codex lists Ultrafast as a third service tier for eligible models and
accounts (GPT-6.1 Sol). Codex chats saved Fast as on/off, which cannot
hold a third tier. The Codex speed is now a Standard/Fast/Ultrafast
choice built from the tiers the model lists; the tier id is still
resolved from the catalog at each send. Older clients keep their Fast
toggle: the host still reports Fast on/off and accepts it as a speed.
The chat now keeps the tier id Codex lists (serviceTier: default,
priority, ultrafast) and sends it as-is on turn/start; Codex drops a
tier the model no longer lists with its own warning. This removes the
saved per-model tier map, the send-time lookup and the reconcile code.
The unused fastModeTierByModel catalog field is deleted. Older clients
still get Fast on/off, derived from the model's tier named Fast. Also
drops the pnpm-lock.yaml churn the first commit picked up.
- Accept an older client's fastMode write through the Codex adapter; it
  was refused before reaching the tier alias.
- Bump the saved model catalog schema so catalogs from before
  serviceTiers re-list instead of offering a Fast toggle with no tier.
- Keep only the reported tier on the record, not the Fast it implies.
- Drop a reported tier, not only a picked one, when the next model does
  not list it.
- Localize Standard inside the speed choice only.
- Return the options answer directly instead of a one-field wrapper.
Keep a tier Codex reports for the thread (it accepts unlisted ones such
as flex); read the legacy Fast tier beside an empty serviceTiers list.
A reported tier the old model listed and the new one does not resets to
Standard on a model switch, and the reported tier itself stays pickable.
The thread's reported tier is never reset by the unlisted-tier drop, so a
re-picked Flex survives the next read, a model switch, and the turn.
Standard, a tier the model lists, or the thread's reported tier that no
model lists. The setter and the unlisted-tier reset share it, replacing
the separate reported-tier and model-switch guards.
@brennanb2025
brennanb2025 marked this pull request as ready for review October 10, 2026 01:44
@brennanb2025
brennanb2025 merged commit c8b8997 into main Oct 10, 2026
37 checks passed
brennanb2025 added a commit that referenced this pull request Oct 15, 2026
* feat(native-chat): offer Codex Ultrafast as a speed choice

Codex lists Ultrafast as a third service tier for eligible models and
accounts (GPT-6.1 Sol). Codex chats saved Fast as on/off, which cannot
hold a third tier. The Codex speed is now a Standard/Fast/Ultrafast
choice built from the tiers the model lists; the tier id is still
resolved from the catalog at each send. Older clients keep their Fast
toggle: the host still reports Fast on/off and accepts it as a speed.

* refactor(native-chat): save the Codex tier id instead of a speed name

The chat now keeps the tier id Codex lists (serviceTier: default,
priority, ultrafast) and sends it as-is on turn/start; Codex drops a
tier the model no longer lists with its own warning. This removes the
saved per-model tier map, the send-time lookup and the reconcile code.
The unused fastModeTierByModel catalog field is deleted. Older clients
still get Fast on/off, derived from the model's tier named Fast. Also
drops the pnpm-lock.yaml churn the first commit picked up.

* test(pi): drop the removed fastModeTierByModel catalog field

* fix(native-chat): review round 1 for Codex service tiers

- Accept an older client's fastMode write through the Codex adapter; it
  was refused before reaching the tier alias.
- Bump the saved model catalog schema so catalogs from before
  serviceTiers re-list instead of offering a Fast toggle with no tier.
- Keep only the reported tier on the record, not the Fast it implies.
- Drop a reported tier, not only a picked one, when the next model does
  not list it.
- Localize Standard inside the speed choice only.
- Return the options answer directly instead of a one-field wrapper.

* fix(native-chat): review round 2 for Codex service tiers

Keep a tier Codex reports for the thread (it accepts unlisted ones such
as flex); read the legacy Fast tier beside an empty serviceTiers list.

* fix(native-chat): review round 3 for Codex service tiers

A reported tier the old model listed and the new one does not resets to
Standard on a model switch, and the reported tier itself stays pickable.

* fix(native-chat): keep a re-picked reported Codex tier

The thread's reported tier is never reset by the unlisted-tier drop, so a
re-picked Flex survives the next read, a model switch, and the turn.

* refactor(native-chat): one rule for which Codex tier a model offers

Standard, a tier the model lists, or the thread's reported tier that no
model lists. The setter and the unlisted-tier reset share it, replacing
the separate reported-tier and model-switch guards.

* test(native-chat): drop the removed fastModeTierByModel field from main's new catalog test

(cherry picked from commit c8b8997)
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