ccswitchmulti icon indicating copy to clipboard operation
ccswitchmulti copied to clipboard

Codex 旧版 prefix-only 路由迁移应冻结当前目录为安全 include 白名单

Open zhushihao opened this issue 3 months ago • 2 comments

问题

旧版 Codex 路由可能只保存 match.prefixes,没有显式 match.models。当前迁移只读取模型列表,生成空的 v2 include,预览被 include_models_empty 拒绝,用户的旧路由无法升级。

期望行为

迁移预览应读取目标 Provider 当时的可见模型目录,把命中 prefix 的可见模型冻结为精确 include 白名单;alias/modelMap 只能在目标仍能映射到当前目录条目时参与。未命中的目录模型不得加入,不能把 prefix-only 路由扩大成 mode=all。预览需要明确提示未来新增模型不会自动加入,刷新目录后需要重新勾选并保存。

兼容范围

空目录返回 prefix_selection_catalog_empty,有目录但无命中返回 prefix_selection_no_matches;带显式模型但 prefix 没有额外命中时保留显式模型并给出警告。预览快照用于 apply,重复 apply 保持幂等,不能把认证信息写入错误或警告。

验收目标

覆盖 prefix-only、部分命中、alias/canonical、空目录、无匹配、目录刷新后冻结边界和重复 apply;迁移后的 v2 配置必须能通过现有 compiler/runtime。

zhushihao avatar Aug 24 '26 09:08 zhushihao

此 issue 已超过 60 天没有活动,已被标记为 stale。 如果此问题仍然存在,请回复以保持 issue 打开状态,否则将在 14 天后自动关闭。

This issue has been automatically marked as stale because it has not had activity for 60 days. Please reply to keep it open, otherwise it will be automatically closed in 14 days.

github-actions[bot] avatar Oct 24 '26 03:10 github-actions[bot]

此 issue 因长时间无活动已被自动关闭。如果问题仍然存在,欢迎重新打开。

This issue has been automatically closed due to inactivity. If the problem persists, feel free to reopen it.

github-actions[bot] avatar Nov 07 '26 05:11 github-actions[bot]