You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documents: a duplicate's write leaves the host replica on an unrecorded Yjs clientID #794
When the document store writes a duplicate, the duplicating actor's host replica is left on a fresh random Yjs clientID. So hostClients doesn't record the id the replica is bound to, and the document's state vector gains one extra clientID for every duplicate. writeCopy throws its doc away, so that path is harmless; the duplicate path is not.
Work
Red first: duplicate a document and check that the host replica's clientID is in hostClients and that the state vector has not grown by an unbound id.
Fix the duplicate's load-and-hook write so that the replica keeps the bound clientID, or so that the new id is recorded.
Context
Found by batch 7 group D while building #612 (the Yjs client-id log line). It predates batch 7.
Activity