Title: test(files): collaborative agent-streaming coverage (two-writer, multi-editor, undo, persist round-trip) by waleedlatif1 · Pull Request #6199 · simstudioai/sim · GitHub
Open Graph Title: test(files): collaborative agent-streaming coverage (two-writer, multi-editor, undo, persist round-trip) by waleedlatif1 · Pull Request #6199 · simstudioai/sim
X Title: test(files): collaborative agent-streaming coverage (two-writer, multi-editor, undo, persist round-trip) by waleedlatif1 · Pull Request #6199 · simstudioai/sim
Description: 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 — non-overlapping (agent appends, peer edits elsewhere) → peer edit survives, no clobber position-drift (agent inserts above, peer edits below) → peer edit stays attached, no misplacement overlapping rewrite → both edits merge, converges full rewrite → agent content clean, no duplication all: converge, no duplication, no stray empty paragraphs Integration / moving pieces (collab-streaming-integration.test.ts): three-way (agent + 2 peers) convergence, both peer edits survive undo isolation — a peer's undo reverts only its own edit, never the agent's stream persist round-trip — stream → durable markdown → reopen is a fixed point, zero blank runs empty-collapse on the live streaming path — a pathological blank run yields 0 empty paragraphs late joiner — a peer syncing after the stream sees the full, clean doc Type of Change Test coverage (no production code change) Testing 10 new tests, all green; typecheck clean; biome clean. Scope note (in the file headers): these cover CRDT/merge/convert logic deterministically; they do NOT cover the realtime socket transport, the RAF-paced stream loop, or real browser timing — those need a live 2-browser E2E harness. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/simstudioai/sim/pull/6199
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:811a1abf-7095-96cd-971e-b2d26d22eee2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | ACBE:223A5F:C1DF98:10B02EF:6AFB5734 |
| html-safe-nonce | f07546365c8c55c9e70a0018ce84c4794aa2ac22ffd46b3a47c9209b8123536b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0JFOjIyM0E1RjpDMURGOTg6MTBCMDJFRjo2QUZCNTczNCIsInZpc2l0b3JfaWQiOiI1NjYxMjcyNTQ4NzE3NTgyMTMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 705303658eb3228d309950db06090ac52e1f286dd0352d5f16aac7580514886d |
| hovercard-subject-tag | pull_request:4190636655 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/6199/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cbf66c024bb6d10e6955baa7413c54cf13a201bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width