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
fix: send row document source when creating row pages (#418)
* fix: send row document source when creating row pages
* Fix favorite view sync
* feat(sync): send before/after Yjs state vectors on collab updates
Attach before_state_vector/after_state_vector (lib0 v1) to outbound collab
Update messages so the server can detect missing updates. Adds proto
fields 5/6 to Update (regenerated messages.js/.d.ts), captures the vectors
from the Yjs transaction in sync-protocol onUpdate, and threads them
through the persistent sync outbox (a merged drain spans the first
record's before-vector to the last record's after-vector). Covered by new
outbox tests. Backward compatible: empty vectors are treated as absent by
the server, so this is inert when the server feature is off.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lmq1LHFqqDTchv9K2bGEKR
* perf(sync): drop after_state_vector from web collab updates
The server never trusts a client-provided after vector (it derives the
post-update state from the update bytes itself), so sending it was wasted
work. Compute and send only before_state_vector: one Y.encodeStateVector
call per update instead of two, and fewer bytes on the wire. Removes the
field from the outbox record and all build sites (immediate/broadcast,
IDB-fallback, merge-drain) and from handleSyncRequest. The Update proto
still declares field 6 to stay aligned with the server wire contract; it
is simply left unset (serializes as absent -> None on the server).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lmq1LHFqqDTchv9K2bGEKR
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments