手动声明推理能力后 V2 子 Agent 仍显示未知,导致官方模型和千问无法选择推理强度
问题描述
在 CCSwitchMulti 的供应商编辑页中,为模型选择“手动声明”并配置 Provider 原生推理档位后,保存成功,但“Codex 多模型路由 → 子 Agent”页面中的模型仍显示“能力未知”。随后 Codex 聊天端的“推理强度”菜单无法对官方模型和千问模型生效。
复现环境
- Windows
- CCSwitchMulti 安装版本:2026-08-20 本机安装包(
cc-switch.exe修改时间 2026-08-20) - 相关模型:
qwen3.8、gpt-5.6-sol、gpt-5.6-terra、gpt-5.6-luna
复现步骤
- 打开供应商编辑页。
- 选择模型
qwen3.8。 - 在“Codex 推理能力(用户覆盖)”中选择“手动声明”。
- 配置 Provider 原生档位,例如
low / medium / high,默认档位设为low。 - 保存供应商配置。
- 打开“Codex 多模型路由 → 子 Agent”。
- 查看该模型的“最终生效能力”。
- 在 Codex 聊天端切换模型并打开“推理强度”。
实际结果
- V2 子 Agent 页面仍显示:
- 控制类型:未知
- 能力来源:未知
- 能力指纹:未生成(未知能力)
- 最终行为:使用服务端默认(不发送推理参数)
- 聊天端对
qwen3.8和 GPT-5.6 官方模型无法正常选择/应用推理强度。 - 推理速度出现异常,疑似实际回退到服务端默认推理档位,而不是 UI 显示的档位。
预期结果
保存“手动声明”后,应同时生成或更新 V2 子 Agent 使用的统一能力记录,例如:
{
"supportStatus": "manually_declared",
"controlKind": "graded",
"supportedEfforts": ["low", "medium", "high"],
"defaultEffort": "low",
"disableAllowed": true,
"upstream": {
"format": "object",
"parameter": "reasoning.effort"
}
}
之后:
- V2 页面应显示能力来源为“手动声明”,而不是“未知”。
- 聊天端应展示模型实际支持的推理强度选项。
- 选择的档位应被转换并发送到对应上游参数,例如
reasoning.effort或reasoning_effort。 - 对官方 Codex 模型,应优先读取模型目录中的
supportedReasoningEfforts/supported_reasoning_levels,不应因为能力库没有条目而显示未知。
证据
本机安装包中的 resources/reasoning-capabilities.json 目前只包含两个 OpenRouter DeepSeek 条目,没有 qwen3.8 或 GPT-5.6 条目。与此同时,官方模型目录缓存中实际存在 supportedReasoningEfforts、supported_reasoning_levels 和 supportsReasoningSummaries 等能力字段。
这看起来像是以下两个配置域没有连通:
- 供应商编辑页的 Provider 原生推理声明;
- V2 子 Agent 的统一模型能力目录。
请检查手动声明保存逻辑、能力目录生成/合并逻辑,以及聊天端推理强度读取逻辑是否使用了不同的字段或不同的数据源。
此 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.
此 issue 因长时间无活动已被自动关闭。如果问题仍然存在,欢迎重新打开。
This issue has been automatically closed due to inactivity. If the problem persists, feel free to reopen it.