| @loro-extended/repo | patch |
|---|
fix: send reciprocal sync-request in storage-first sync path
When a server has a storage adapter and receives a bidirectional sync-request for an unknown document, it now correctly sends the reciprocal sync-request after storage responds. Previously, this was skipped, causing the client to not know the server was subscribed to the document. This prevented ephemeral/presence data from being relayed between clients.
The fix ensures the documented symmetric sync protocol is followed even when the storage-first path is used:
- Client sends
sync-requestwithbidirectional: true - Server queues request, consults storage
- Server sends
sync-responseAND reciprocalsync-request(now fixed) - Client adds server to subscriptions, enabling ephemeral relay