[Bug] web-remote-control 桥降级期间,"+"菜单勾选的 computer-use 挂载选择未同步到执行端,会话以 trusted=3/4 静默启动(mcp__computer-use__* 全缺)
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 22
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
类型 / Type
Bug(偶发 / intermittent)
环境 / Environment
- 系统:Windows 10 x64 10.0.19045
- ZCode 桌面端 + web-remote-control(移动端远程控制桥接处于活跃状态)
- computer-use 插件版本 0.5.14,MCP 客户端 zcode 0.16.5
- 全局开关:电脑控制已开启;用户配置
~/.zcode/cli/config.json中computer-use@zcode-plugins-official: enabled=true,无任何工作区级 MCP 覆盖文件
现象 / Symptom
新建会话时,用户在输入框左下角"+"菜单中明确勾选了 computer-use(电脑控制),界面上显示已选中;但会话启动后,模型工具列表中完全没有 mcp__computer-use__* 工具。
关键日志证据:该会话启动清点时 MCP 工具组为 total=4,trusted=3——computer-use 未被列入本会话可信名单,因此执行端从未发起过任何一次 computer-use 连接(mcp.server.connect.started 记录数为 0)。不是连接失败/超时,而是挂载选择没有传递到执行端。
时间线(本机时区,2026-09-15)/ Timeline
| 时间 | 事件 |
|---|---|
| 18:07:51 | 桌面日志 [web-remote-control] raw relay bridge degraded(reasonCode: remote.rpcFrame.replayGraceExceeded,当日出现数十次) |
| 18:08–18:12 | 连续创建 3 个会话(工作区 D:\AI_Workstation\项目_projects\08_SEER食管肉瘤样癌),全部 trusted=3/4,computer-use 挂载丢失 |
| 18:19:58 | workspace bridge 重建 + syncAppRuntimePreferences 重新同步 |
| 18:20 起 | 新会话全部恢复 trusted=4/4,computer-use 正常连接(toolCount=30) |
排除项 / What it is NOT
- 与工作区无关:同一工作区 09-14 有 10+ 个会话 trusted=4/4 且 computer-use 正常连接;09-15 当天 03:08 也有 trusted=4/4 的会话,与 trusted=3/4 交替出现
- 与配置文件无关:插件启用配置、
enabledPlugins均正常;无 unknown key / 无 schema 问题 - 不是后台任务会话的设计限制:手动交互会话同样受影响
期望行为 / Expected
- "+"菜单中的挂载选择应可靠同步到执行端;
- 若选择未送达/同步失败,UI 应给出可感知的告警(如"该工具未生效"),而不是照常显示"已挂载";
- 会话创建时如果 trusted 名单与用户显式选择矛盾,应重试同步或拒绝静默降级。
实际行为 / Actual
UI 显示勾选成功 → 执行端拿到缺 computer-use 的名单 → 会话静默以 3/4 启动,全程无任何提示。用户只能事后从"工具列表里没有 mcp__computer-use__*"发现,且 MCP 无法中途补挂,整个会话报废。
重现步骤 / Repro(尽力描述)
- 开启移动端远程控制(web-remote-control bridge 处于 replayable 状态)
- 在弱网/中继不稳定环境(日志高频出现
remote.rpcFrame.replayGraceExceeded)下操作桌面端 - 通过"+"菜单勾选 computer-use 并新建会话
- 观察会话内 MCP 工具挂载情况:偶发 trusted=3/4,computer-use 全缺
影响 / Impact
依赖桌面自动化的任务被迫整会话作废重来;对用户呈现为"明明勾选了却不生效",极易误判为自己配置错误。
备注
附件为脱敏日志摘录(桌面 v2 日志关键行 + runtime JSONL 关键事件,不含凭据)。原始日志可提供给官方排查。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files, tests, or code entry points are named. Start by tracing web-remote-control bridge degradation through session creation and the trusted MCP list, then verify that the “+” menu selection reaches the execution side; done means the selected tool is mounted reliably or a visible warning/retry prevents silent startup.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100