Skip to content

fix(codex): recognize alias-suffixed flash/pro role models in V2 subagent page (closes #48) - #49

Closed
zhushihao wants to merge 1 commit into
BigStrongSun:mainfrom
zhushihao:fix/43-alias-models
Closed

fix(codex): recognize alias-suffixed flash/pro role models in V2 subagent page (closes #48)#49
zhushihao wants to merge 1 commit into
BigStrongSun:mainfrom
zhushihao:fix/43-alias-models

Conversation

@zhushihao

Copy link
Copy Markdown
Contributor

Closes #48

概述

V2 子 Agent 角色编辑页中,别名后缀模型(如 route alias 暴露的 deepseek-v4-flash-deepseekdeepseek-v4-pro-deepseek)显示"catalog 中缺失"(missing from catalog),无法正常编辑/选择角色模型,即使该模型已在路由中启用。

根因

前端 hasFlashRoleModel / hasProRoleModel(CodexRouterWorkspacePage.tsx)硬编码精确模型 IDdeepseek-v4-flash / deepseek-v4-pro)。当模型经 route alias 暴露为 -deepseek 后缀形式时,精确匹配失败 → 误判"缺失"。而 V4 Flash Vision 实验变体(deepseek-v4-flash-vision-exp)又会被前缀匹配误命中,需排除。

修复

  • 基础名前缀匹配(排除 vision 变体),识别 alias-suffixed 的 flash/pro 角色模型
  • 补回归测试覆盖 alias 后缀与 vision 变体排除

测试

  • 前端 vitest run:新增 alias/vision 变体用例全绿
  • tsc --noEmit:零错误

…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完成
@zhushihao zhushihao closed this Aug 24, 2026
@zhushihao
zhushihao deleted the fix/43-alias-models branch August 24, 2026 13:22
@zhushihao
zhushihao restored the fix/43-alias-models branch August 24, 2026 13:29
@zhushihao zhushihao reopened this Aug 24, 2026
@zhushihao

Copy link
Copy Markdown
Contributor Author

已在 v3.19.2-17 以等价实现覆盖(母仓库作者按自己的理解修复,未直接合并本 PR),故关闭。/ Superseded by the equivalent implementation shipped in v3.19.2-17; closing.

@zhushihao zhushihao closed this Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][Codex V2] V2 子 Agent 页 alias 后缀模型误判缺失(hasFlashRoleModel/hasProRoleModel 硬编码精确 ID)

1 participant