跨设备同步时偶发丢失消息及回复
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
**提交人**: liuheng
**客户端版本**: 0.1.22
---
## 现象
最近几天多次出现跨设备消息不同步的问题:
- 在 PC 端发送消息 A 后,PC 端看不到消息 A 及其回复,但打开手机端可以看到;
- 有时情况相反:在手机端发送消息后,手机端看不到该消息及回复,但在 PC 端可以看到。
问题在最近几天已经发生过多次,表现为同一个会话在不同设备上的消息记录不一致。
## 复现步骤
1. 在 PC 或手机端打开同一个会话。
2. 发送一条消息并等待回复。
3. 观察当前设备的会话记录。
4. 再打开另一设备上的同一会话进行对比。
## 期望行为
同一个会话的消息和回复应在 PC 与手机端及时同步,两端都能看到完整且一致的记录。
## 实际行为
消息及其回复有时只显示在其中一个设备上,另一个设备看不到;切换到另一设备后,能确认消息实际上已经发送且收到回复。
---
**版本区域**: CN
**OS**: win32 x64 (10.0.26200)
**界面语言**: en
Contributor guide
Research direction
Start by reproducing the cross-device conversation mismatch using the listed PC and mobile steps, then trace the message synchronization path for the affected conversation. Compare message and reply records on both devices after sending, and consider the issue done when both clients consistently show the same complete history.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, react-native, typescript
- Domain
- desktop, distributed-systems, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100