Skip to content

feat(codex): keep per-model Fast and Lite settings across catalog regeneration - #10039

Closed
fightingnoble wants to merge 1 commit into
farion1231:mainfrom
fightingnoble:feat/codex-per-model-fast-lite
Closed

fightingnoble wants to merge 1 commit into
farion1231:mainfrom
fightingnoble:feat/codex-per-model-fast-lite

Conversation

@fightingnoble

@fightingnoble fightingnoble commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Adds two independent per-model settings for custom Codex providers:

  • Fast: When enabled, CC Switch adds fast to the model’s additional_speed_tiers and a priority entry to service_tiers. The Codex app can then show the âš¡ option and sends service_tier: "priority" when the user selects it.
  • Lite: When enabled, CC Switch writes use_responses_lite: true to the model catalog. The Codex app then sends Responses Lite requests with reasoning.context: "all_turns".
Fast and Lite settings for a custom Codex model

Tests: pnpm test:unit (4575 passed), cargo test (5490 passed, 12 ignored).

…und-trips

- three-state Fast/Lite controls (default/enabled/disabled) for Codex models, with translations for all locales
- keep legacy useResponsesLite readable, explicit lite wins
- write recoverable Fast/Lite markers for direct and aggregated catalogs so settings survive regeneration
- preserve explicit settings for converted protocols without enabling unsupported capabilities
- hide Fast/Lite controls for Copilot profiles where they have no effect
@github-actions github-actions Bot added frontend Frontend (React/TypeScript) backend Backend (Rust/Tauri) i18n Internationalization (zh/en/ja) labels Nov 27, 2026
@farion1231

Copy link
Copy Markdown
Owner

Thanks for the PR! Our PR template requires a "Human Note / 本人说明" section: a few sentences in your own words about what you want to do, not AI-generated. This PR's description doesn't have one (or it's empty), so I'm closing it for now.

Once you've added it to the description, reply here and we'll reopen it and continue the review.

@farion1231 farion1231 closed this Nov 27, 2026
@fightingnoble

Copy link
Copy Markdown
Contributor Author

Adding two dependent toggle for codex custom provider:

  • Fast: When enabled,
    • CC Switch adds fast to the model’s additional_speed_tiers and priority to service_tiers.
    • Codex App can then show the âš¡ option and sends service_tier: "priority" when the user selects it.
  • Lite: When enabled,
    • CC Switch writes use_responses_lite: true to the model catalog.
    • Codex App then sends Responses Lite requests with reasoning.context: "all_turns".
image

farion1231 pushed a commit that referenced this pull request Nov 30, 2026
…und-trips

- three-state Fast/Lite controls (default/enabled/disabled) for Codex models, with translations for all locales
- keep legacy useResponsesLite readable, explicit lite wins
- write recoverable Fast/Lite markers for direct and aggregated catalogs so settings survive regeneration
- preserve explicit settings for converted protocols without enabling unsupported capabilities
- hide Fast/Lite controls for Copilot profiles where they have no effect

Refs #9695, #10039

Co-authored-by: fightingnoble <29675145+fightingnoble@users.noreply.github.com>
@farion1231

Copy link
Copy Markdown
Owner

Thanks @fightingnoble for this, and for adding the Human Note! We couldn't reopen this PR (the branch was force-pushed after it was closed, and maintainer edits are off), so I landed it directly on main. Your commit is in e8bfa2a with you as co-author, followed by two follow-ups:

  • 166d6e8: turning on Fast for an official GPT model now reuses the official service tiers; the controls use the shared Select with help tips, and "Default" now says it means off. The useResponsesLite fallback is dropped, since CC Switch never stored that key.
  • 2ef23b3: per-model Fast replaces the card-level "Keep official Fast tier" switch. Cards that had it on get Fast on their GPT rows when the form opens.

It will ship in the next release. It also fixes #9695: turning on Lite for a model stops the double-counted reasoning that compacts the context early.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend (Rust/Tauri) frontend Frontend (React/TypeScript) i18n Internationalization (zh/en/ja)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants