fix(dsh): recognize configured native models and pin diagnosis selection
Core regression / Python 3.12 core, intervention UI and release configuration (push) Failing after 20s
Core regression / JavaScript syntax (push) Successful in 4s
Core regression / Python 3.12 core, intervention UI and release configuration (pull_request) Failing after 20s
Core regression / JavaScript syntax (pull_request) Successful in 3s

This commit is contained in:
阿白叔 committed 2026-11-05 17:40:50 +08:00
1 parent eba935e710
commit 8837587ce9
9 files changed
+149 -36

No files matched your search

@@ -40,3 +40,11 @@ node tools/verify_dsh_model_results.mjs
## 验证边界
本次仅验证新增能力及直接受影响的回归,不运行旧功能全量测试,不重新打包 EXE。真实模型时延、远端工单和 CAD 替换结果不由上述离线结果证明。
## 原生模型设置后的状态灯修正
手动验证发现:原生模型设置会保存自定义提供商及凭据,但仅添加提供商时没有更新 `agent-default-model`。只检查内置官方默认模型会误报缺少凭据。现在没有显式默认配置且内置默认不可用时,从已保存的提供商中选择有凭据的模型,返回经过校验的选择元数据;自动诊断会话使用同一选择及推理强度,不改写用户全局默认配置。有显式默认配置时仍按该配置检查。
定向回归 **55 passed**(与上面的验收范围有重叠,不累计):`tests/dsh/test_availability.py`、`tests/ui/test_dsh_status_indicator.py`、`tests/ui/test_dsh_diagnosis_lifecycle.py`、`tests/ui/test_dsh_ai_nonblocking.py`。原生模型离线检查 **23 场景通过**,配置文件字节不变;原生诊断取消与会话选模检查通过,包含禁止自动诊断保存全局默认的断言。
使用当前预览中实际保存的模型配置,通过 Windows UI Automation 开启自动介入,状态由灰色静默切换为绿色“AI 自动介入:待机”,前后事件记录均为 0。没有发送真实模型请求、操作 CAD 或提交工单。