手机版始终停在「连接你电脑上的 Cindy」引导页,看不到同账号在线的桌面端
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
**提交人**: 宸睿 郑
**客户端版本**: 0.1.79
---
**环境**
- 桌面端:macOS,Cindy 0.1.79(CN 区域生产构建)
- 移动端:iOS 整包 0.1.5(热更 a7e6ef9c),设置页显示「配套桌面版本 0.1.79」与桌面端实际版本一致
- 两端登录同一账号(已在两端设置页人工核对为同一账号)
**现象**
- 手机端「连接你电脑上的 Cindy」页面始终停留在引导页(开始使用 1-2-3 步骤列表 + 「云端 Cindy 筹备中」卡片),从未出现设备列表;手机端设置页显示「Relay 已连接 · 可以同步远程任务」,全程无任何报错提示
- 桌面端日志显示 device-link 已连接官方 relay(wss://device-link.cindy.com.cn)并保持在线:`device-link online (protocol=v1)`,长时间无断连
- 桌面端「设置 → 远程连接」中「远程桌面 / 远程控制」均已开启,无已撤销设备记录
- 桌面端本地设备名记录中仅有本机,从未出现手机;手机端也看不到桌面端 → **双向互相不可见**
**时间线 / 诱因线索**
- 问题出现前,桌面端曾在约 15 分钟内反复断连:网络探测超时、`GET /api/device-link/devices` 多次返回 `net::ERR_NETWORK_CHANGED`、TLS 握手完成前断开(WebSocket close code=1006)。诱因是系统代理在「直连 ↔ 本地代理」之间反复切换
- 关闭系统代理并完全重启应用后,device-link 恢复稳定在线(之后数十分钟零断连),但手机端依旧无法发现桌面端
**已尝试,均无效**
1. 关闭系统代理 / VPN(两端)
2. 完全退出并重启桌面端应用(device-link 成功重新上线)
3. 反复开关「允许同账号设备控制本机」
4. 两端账号退出并重新登录
5. 手机端重启应用、开关飞行模式后刷新连接页
**怀疑方向**
两端与 relay 的 WebSocket 均正常在线,但手机端拉取设备目录始终为空,怀疑服务端设备目录注册/可见性异常,或此前频繁断连期间遗留的注册状态未被服务端清理/刷新。
---
## 提交时的任务环境
仅代表提交时快照,不一定是故障环境。OS 来自提交客户端本机,不含 SSH 远端主机;Harness / 模型来自当前任务。与运行环境无关的反馈可忽略本段。
**版本区域**: CN
**OS**: darwin arm64 (25.6.0)
**Harness**: Pi
**Model ID**: ` z-ai/glm-5.3-flash `
**界面语言**: zh-CN
Contributor guide
Research direction
Start with the device-link flow around GET /api/device-link/devices and the relay WebSocket at wss://device-link.cindy.com.cn; compare registration and discovery behavior after the earlier connection failures. Use the reported device-link online logs and the mobile connection page to trace why the directory is empty. Done means same-account desktop and mobile devices become mutually visible without the reported reconnect workarounds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, react-native, typescript
- Domain
- api, desktop, mobile, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100