ccswitchmulti icon indicating copy to clipboard operation
ccswitchmulti copied to clipboard

Codex v2 未命中路由应与前端提示统一为 fail-closed

Open zhushihao opened this issue 3 months ago • 2 comments

问题

Codex v2 后端在未命中任何启用路由时应 fail-closed,但旧版前端仍提示“会走默认路由”、设置页仍把 defaultRouteId 当作兜底入口,发布检查也要求设置默认路由,造成用户看到的行为与实际请求结果相反。

期望行为

上游应同时移除 v2 运行时的 defaultRouteId 兜底,并统一预览、方案设置、发布检查和诊断为“未命中请求会被拒绝”。旧 defaultRouteId 字段继续可读、可诊断、保存时不静默丢失,但只作为兼容字段展示,不再提供可编辑的运行时兜底入口。

兼容范围

旧配置、跨设备同步数据和缺失字段必须继续可读;未命中请求不能被静默改投其他 Provider。诊断警告不得暴露密钥、端点或完整配置,且前端不能在后端语义尚未 fail-closed 时孤立承诺拒绝行为。

验收目标

覆盖后端未命中、带旧 defaultRouteId 的预览、设置页只读展示、发布检查、诊断 default_route_legacy_ignored 警告,以及前后端回归测试。

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]