mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-09-05 20:43:46 +08:00
fix(web-access): 门槛降回 10.0.98——#77 让新装客户端整个失去浏览器能力 (#78)
真机测试发现的回归,由 #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>
This commit is contained in:
@@ -16,7 +16,7 @@ description: >-
|
||||
新闻、网址、URL、找一下、搜一下、查一下、小红书、B站、微博、飞书、Twitter、
|
||||
推特、X、知乎、公众号、已登录、登录状态。
|
||||
license: Complete terms in LICENSE.txt
|
||||
version: 2.2.0
|
||||
version: 2.2.1
|
||||
type: procedural
|
||||
risk_level: low
|
||||
status: enabled
|
||||
@@ -79,7 +79,7 @@ market:
|
||||
fill-opacity="0.12"/><path d="M20.5 20.5l2 2" stroke="#34C759"
|
||||
stroke-width="1.8" stroke-linecap="round"/></svg>
|
||||
category: research
|
||||
required_client_version: 10.0.100
|
||||
required_client_version: 10.0.98
|
||||
maintainer:
|
||||
name: DesireCore Official
|
||||
verified: true
|
||||
|
||||
Reference in New Issue
Block a user