fix(codex): recognize alias-suffixed flash/pro role models in V2 subagent page (closes #48) - #49
Closed
zhushihao wants to merge 1 commit into
Closed
fix(codex): recognize alias-suffixed flash/pro role models in V2 subagent page (closes #48)#49zhushihao wants to merge 1 commit into
zhushihao wants to merge 1 commit into
Conversation
…gent page hasFlashRoleModel/hasProRoleModel hard-coded exact model ids, so alias-exposed models (deepseek-v4-flash-deepseek via route aliases) showed 'missing from catalog'. Match by base-name prefix, excluding the vision variant. Adds regression test.
BigStrongSun
added a commit
that referenced
this pull request
Aug 24, 2026
Re-audit PRs #37, #39, #45, #47, and #49 against their complete runtime contracts rather than file-level overlap. Unify v2 auth ownership through raw passthrough, default missing modelSelection in the backend schema, enforce unambiguous shared projection ownership, normalize DeepSeek role aliases, and recover documented partial ReplaceFileW states with an explicit backup. Add focused regressions for each missed path and record the corrected audit in release notes and repository memory.\n\n本次提交由BigStrongsSun完成
Contributor
Author
|
已在 v3.19.2-17 以等价实现覆盖(母仓库作者按自己的理解修复,未直接合并本 PR),故关闭。/ Superseded by the equivalent implementation shipped in v3.19.2-17; closing. |
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.
Closes #48
概述
V2 子 Agent 角色编辑页中,别名后缀模型(如 route alias 暴露的
deepseek-v4-flash-deepseek、deepseek-v4-pro-deepseek)显示"catalog 中缺失"(missing from catalog),无法正常编辑/选择角色模型,即使该模型已在路由中启用。根因
前端
hasFlashRoleModel/hasProRoleModel(CodexRouterWorkspacePage.tsx)硬编码精确模型 ID(deepseek-v4-flash/deepseek-v4-pro)。当模型经 route alias 暴露为-deepseek后缀形式时,精确匹配失败 → 误判"缺失"。而 V4 Flash Vision 实验变体(deepseek-v4-flash-vision-exp)又会被前缀匹配误命中,需排除。修复
测试
vitest run:新增 alias/vision 变体用例全绿tsc --noEmit:零错误