Skip to content

fix(frontend): default Codex/CC Switch key templates to gpt-5.6#4032

Open
DylanChiang-Dev wants to merge 1 commit into
Wei-Shaw:mainfrom
DylanChiang-Dev:fix/codex-ccswitch-default-model-5.6
Open

fix(frontend): default Codex/CC Switch key templates to gpt-5.6#4032
DylanChiang-Dev wants to merge 1 commit into
Wei-Shaw:mainfrom
DylanChiang-Dev:fix/codex-ccswitch-default-model-5.6

Conversation

@DylanChiang-Dev

Copy link
Copy Markdown

Closes #4029

English

Two frontend spots hardcoded gpt-5.5 as the Codex default model, both stale now that GPT-5.6 is available and already present in the openaiModels map / backend pricing:

  • frontend/src/components/keys/UseKeyModal.vuegenerateOpenAIFiles() and generateOpenAIWsFiles() (the "Codex CLI" and "Codex CLI (WebSocket)" tabs) emitted model = "gpt-5.5" / review_model = "gpt-5.5".
  • frontend/src/utils/ccswitchImport.tsOPENAI_CC_SWITCH_CODEX_MODEL = "gpt-5.5", used for the CC Switch import deeplink.

Users copying the generated Codex config or importing into CC Switch got a config pinned to gpt-5.5 with no hint that 5.6 exists, and had to edit it by hand.

Change

Bump both defaults (model + review_model) to gpt-5.6, and update the corresponding specs (UseKeyModal.spec.ts, ccswitchImport.spec.ts).

This is a minimal literal bump. A follow-up could source the default from openaiModels so it never drifts again, but that is a larger refactor and left out here to keep the change focused.

Testing

vitest run on the two affected spec files — 10 tests pass.


中文

前端有两处把 gpt-5.5 写死为 Codex 的默认模型,在 GPT-5.6 已可用(且已存在于 openaiModels 与后端定价数据)的情况下都已过时:

  • frontend/src/components/keys/UseKeyModal.vue —— generateOpenAIFiles()generateOpenAIWsFiles()("Codex CLI" 与 "Codex CLI (WebSocket)" 分页)输出 model = "gpt-5.5" / review_model = "gpt-5.5"
  • frontend/src/utils/ccswitchImport.ts —— OPENAI_CC_SWITCH_CODEX_MODEL = "gpt-5.5",用于 CC Switch 导入 deeplink。

用户复制生成的 Codex 配置、或导入到 CC Switch 后,得到的是写死在 gpt-5.5 上的配置,没有任何提示 5.6 已可用,只能手动修改。

改动

将两处默认值(model + review_model)提升到 gpt-5.6,并同步更新对应测试(UseKeyModal.spec.tsccswitchImport.spec.ts)。

这是最小的字面量提升。后续可以让默认值直接从 openaiModels 读取以彻底避免再次过时,但那是更大的重构,本 PR 为保持聚焦未纳入。

测试

对两个受影响的测试文件运行 vitest run —— 10 个测试全部通过。

The Codex CLI config template (UseKeyModal.vue) and the CC Switch import
deeplink (ccswitchImport.ts) both hardcoded gpt-5.5 as the default model.
GPT-5.6 is already listed in the openaiModels map and recognized by backend
pricing, so users copying these configs got a stale gpt-5.5 pin with no hint
5.6 was available. Bump both defaults (model + review_model) to gpt-5.6 and
update the corresponding specs.

Refs Wei-Shaw#4029
@github-actions

github-actions Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@DylanChiang-Dev

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Jul 11, 2026
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.

Codex/CC Switch key-usage templates hardcode model = "gpt-5.5", don't reflect available GPT-5.6 models

1 participant