Repository navigation
feat(workspace): prove collaboration durability - #52
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedNext included review available in 28 minutes. View limit detailsLimit details: You’ve used the included review currently available. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (8)
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Free Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (13)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughAdded workspace Yjs editing, a durable Hocuspocus collaboration server, append-only crash recovery, and tests for synchronization, validation, acknowledgements, concurrency, size limits, and restart recovery. ChangesWorkspace collaboration foundation
Durable collaboration server
Crash recovery
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant CollaborationServer
participant DurableUpdateStore
participant ReconnectedClient
Client->>CollaborationServer: Submit Yjs update
CollaborationServer->>DurableUpdateStore: Append update
DurableUpdateStore-->>CollaborationServer: Confirm durable sequence
CollaborationServer-->>Client: Send acknowledgement
ReconnectedClient->>CollaborationServer: Load document
CollaborationServer->>DurableUpdateStore: Read persisted updates
DurableUpdateStore-->>CollaborationServer: Return updates
CollaborationServer-->>ReconnectedClient: Restore document content
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Essentials by visiting https://app.coderabbit.ai/settings/billing. Comment |
|
@coderabbitai review |
|
Summary
This is an isolated Phase 0 spike. It adds no application route and authorizes no deployment.
Verification
npm run test:collaboration— 10/10 passednpx vitest run src/test/workspace/collaboration.test.ts— 2/2 passednpm run verify— passedgit diff --check— passedBoundaries
Summary by CodeRabbit
New Features
Bug Fixes
Documentation