mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-26 10:11:36 +08:00
上游源码分析发现根本原因: - Gateway 的 shouldAllowSilentLocalPairing 需要 isControlUi=true 才能在本地连接时静默自动批准设备配对 - 我们之前用 gateway-client+backend,isControlUi=false,加上 Tauri WebView 会发 Origin 头(hasBrowserOriginHeader=true), 导致 shouldAllowSilentLocalPairing 返回 false → 'pairing required' 修复内容: - device.rs: client.id 改为 openclaw-control-ui,mode 改为 ui, v3 签名 payload 同步更新,本地连接触发静默自动配对 - pairing.rs: paired.json 的 clientId/clientMode 同步更新 - main.js: 启动时自动调用 autoPairDevice(),确保 device 已配对 + allowedOrigins 已写入,无需用户手动点击一键修复