mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-09-05 22:44:15 +08:00
真机测试发现的回归,由 #77 引入。 ## 现象 全新安装的 10.0.99 客户端上,`BrowserManage` / `BrowserAct` / `BrowserSnapshot` **完全不存在**——Agent 用 `ToolSearch` 也找不到。它们是 hidden 工具,靠 web-access 技能解锁,而该技能压根没被装上。 ## 因果 `sync/builtin-skill.ts:171`:本地不存在 + 客户端版本低于 `required_client_version` → 记 `skippedIncompatible` 直接 return,**不新装**。 #77 把门槛提到 10.0.100,而 **10.0.100 尚未发布**——于是所有新装的 10.0.99 及以下客户端拿不到整个 web-access,连带失去全部内置浏览器能力。 已装 2.1.1 的老用户不受影响(`:207` 那条分支保留本地兼容旧版,不更新成用不了的新版)。 ## 判断失误 #77 的理由是「不提门槛老客户端会拿到教它们用不存在能力的说明」。顾虑本身成立,但两害量级差了一个数量级: | | 后果 | |---|---| | 门槛低 | 文档里几条说明超前,Agent 试一次失败、换个路子——**能力还在** | | 门槛高 | **整个技能不存在**,Agent 连试都没得试 | ## 修法 门槛降回 10.0.98,超前的四条能力改用行内「需 10.0.100+」标注,并写明老版本上的替代做法。老客户端既拿得到技能,也不会被文档误导。`version` 2.2.0 → 2.2.1。 --- Regression from #77 found during real-machine testing: raising `required_client_version` to an unreleased version made the whole skill fail to install on fresh clients, taking all built-in browser tools with it. --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>