Uh oh!
There was an error while loading. Please reload this page.
test(files): collaborative agent-streaming coverage (two-writer, multi-editor, undo, persist round-trip) - #6199
Conversation
…treaming integration coverage
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Two-writer suite ( Integration suite ( File headers note these cover CRDT/merge/convert logic only—not realtime transport, RAF streaming, or multi-browser E2E. Reviewed by Cursor Bugbot for commit 8eea69d. Configure here. |
Greptile SummaryThe PR adds deterministic Yjs regression coverage for collaborative agent streaming, including concurrent editors, convergence, undo isolation, persistence, empty-paragraph collapse, and late joining.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains; the previously reported false-green is fixed by asserting the peer insertion while its target still exists before applying the full rewrite.
|
| Filename | Overview |
|---|---|
| apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/collaboration/apply-streamed-markdown.concurrent.test.ts | Adds concurrent two-writer regression scenarios; the revised full-rewrite case now verifies that the peer insertion executes before the rewrite and survives exactly once. |
| apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/collaboration/collab-streaming-integration.test.ts | Adds deterministic integration coverage for multi-peer convergence, undo isolation, persistence stability, blank-run collapse, and late joining. |
Reviews (3): Last reviewed commit: "test(files): assert every peer edit land..." | Re-trigger Greptile
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…concurrent peer edit
waleedlatif1
commented
Aug 3, 2026
waleedlatif1
commented
Aug 3, 2026
@cursor review |
Uh oh!
There was an error while loading. Please reload this page.
waleedlatif1
commented
Aug 3, 2026
waleedlatif1
commented
Aug 3, 2026
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 8eea69d. Configure here.
Summary
Adds deterministic regression coverage for the collaborative agent-streaming surface, following the blank-line-collapse fix (#6198, merged). These exercise the CRDT/merge/convert logic with genuine Yjs peers — they answer "does concurrent human editing during an agent stream corrupt the doc?" (it does not) and lock in the invariants.
Two-writer (
apply-streamed-markdown.concurrent.test.ts): a peer edits while the agent streams —Integration / moving pieces (
collab-streaming-integration.test.ts):Type of Change
Testing
Checklist