Repository navigation
feat(native-chat): offer Codex Ultrafast as a speed choice - #26962
Merged
Merged
Conversation
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.
2 tasks done
- 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.
…in's new catalog test
brennanb2025
marked this pull request as ready for review
October 10, 2026 01:44
This was referenced Oct 10, 2026
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)
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.
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:
serviceTier(default,priority,ultrafast), the same key Codex takes onturn/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.serviceTiers(id, name, description), saved with the rest of the model catalog. The picker builds Speed from that list.fastModeTierByModel), the send-time lookup and the legacy reconcile code are deleted.serviceTiersand the chat's currentserviceTier. A client shows Speed when a model listsserviceTiersand 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:
Linked Issue
None; requested directly. UI follow-up for these pickers: #26970.
Visual Proof
Captured from hidden, isolated dev builds (
mainat7e621d5a4a7vs this PR ataaa4d3d69d4) 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.)Picked Ultrafast and sent
hello, then picked Fast and sentagain: the messages reached Codex onultrafastandpriority(the stand-in's request log agrees:serviceTier: "ultrafast", then"priority").Switched to GPT-6-Luna, which lists only Fast: Speed offers Standard / Fast, and Fast stays picked because Luna lists the same tier.
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
Notes
serviceTiersand shows the Fast toggle.