fix: v0.8.0 修订 — 思考用户意图优先 · 移除元信息硬门控 · 实施清单入库
CI / 类型检查 + Lint + 单元测试 (push) Failing after 9m8s
CI / 全量测试 (Electron ABI) (push) Failing after 6m8s
CI / 产物编译验证 (push) Successful in 11m1s

- DeepSeek/MiMo/Agnes 移除 supportsThinking 元信息硬门控:思考参数完全遵循用户配置
  (事故复盘中 vision-exp 元信息标注不支持思考、实际产生了 8189 token 推理内容,
  元信息不可靠;预算耗尽由引擎降级重试兜底,元信息不符仅告警不拦截)
- Ollama 保留 /api/show 能力探测门控(服务端硬协议约束:向不支持思考的模型发
  think 每次请求 400,属协议正确性而非意图覆盖),探测失败 fail-open
- LLM 设置提示文案修订:元信息不符仍按用户配置发送,降级重试自动兜底
- 测试契约反向钉住:vision-exp + 用户开启→照发 enabled+reasoning_effort;
  关闭/未配置→显式 disabled;Ollama 探测 false→不发 think / null→fail-open
- 补录 docs/v0.8.0-迭代实施清单.md(含逐项验证记录与本次修订记录;
  首次提交时该文件因故未入库,本次补齐)
- 验证:typecheck 0 错误 / lint 0 问题 / 系统 Node 2146 通过 / thinking 矩阵 101 用例全绿
This commit is contained in:
2026-09-05 20:49:20 +08:00
parent 5b9d4d19b3
commit 839860083f
9 changed files with 312 additions and 56 deletions
@@ -238,10 +238,11 @@ describe('DeepSeek vision 模型多模态请求格式(v0.5.4', () => {
} as MetonaRequest);
const body = requestBody();
// v0.8.0 P0-3 能力门控: vision 模型 supportsThinking=false → 显式 disabled
// 且不发送 reasoning_effort(思考会耗尽该模型 8192 输出预算 —— 生产事故根因)
expect(body.thinking).toEqual({ type: 'disabled' });
expect(body.reasoning_effort).toBeUndefined();
// v0.8.0 修订(用户意图优先): 元信息 supportsThinking=false 不再拦截 ——
// 用户开启思考则照发 enabled + reasoning_effort(事故复盘中该模型实际
// 产生了推理内容,元信息不可靠;预算耗尽由引擎降级重试兜底)
expect(body.thinking).toEqual({ type: 'enabled' });
expect(body.reasoning_effort).toBe('high');
});
it('vision 模型 messages 数组首位始终为 system 消息', async () => {