| 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:40bce635-4143-dd07-9bd4-b8c3438cce50 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8090:73CE1:A8BDEB:E78E32:6AFB4F34 |
| html-safe-nonce | 3c36bf7e9725bf0cc09e74a2872b73e6cb87cc9ffadaed1c11c951fb68abb665 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDkwOjczQ0UxOkE4QkRFQjpFNzhFMzI6NkFGQjRGMzQiLCJ2aXNpdG9yX2lkIjoiMjEwMzY4ODA3ODczMDk0MDIxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 139cfdd3a170af153964dfc2f12f7c2b60706a7c9690dbe745b4422eb2a5cd51 |
| hovercard-subject-tag | pull_request:4173616764 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/6108/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
Keeps the embedded /chat file view collaborative and fixes the streaming regressions by making copilot a CRDT peer — the SOTA pattern (Electric SQL: AI agents as CRDT peers). Supersedes #61... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | acf7616d06cc051644705b379878c9bb13dc5e70ecf4ffd9b34140f8ac01d7e1 |
| 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 | 26504db649b58525278f77a52b80ba5f10d5f4de |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/simstudioai/sim/pull/6108/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6108%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6108%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim |
| Reload | https://github.com/simstudioai/sim/pull/6108/files |
| Reload | https://github.com/simstudioai/sim/pull/6108/files |
| Reload | https://github.com/simstudioai/sim/pull/6108/files |
| simstudioai | https://github.com/simstudioai |
| sim | https://github.com/simstudioai/sim |
| Code | https://github.com/simstudioai/sim |
| Issues129 (129) | https://github.com/simstudioai/sim/issues |
| Pull requests197 (197) | https://github.com/simstudioai/sim/pulls |
| Actions | https://github.com/simstudioai/sim/actions |
| Projects | https://github.com/simstudioai/sim/projects |
| Security and quality | https://github.com/simstudioai/sim/security |
| Insights | https://github.com/simstudioai/sim/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose |
| waleedlatif1 | https://github.com/waleedlatif1 |
| realtime-rooms | https://github.com/simstudioai/sim/tree/realtime-rooms |
| feat/copilot-stream-into-collab-doc | https://github.com/simstudioai/sim/tree/feat/copilot-stream-into-collab-doc |
|
Conversation
51
| https://github.com/simstudioai/sim/pull/6108 |
|
Commits
14
| https://github.com/simstudioai/sim/pull/6108/commits |
|
Checks
5
| https://github.com/simstudioai/sim/pull/6108/checks |
|
Files changed
| https://github.com/simstudioai/sim/pull/6108/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/6108/files |
|
feat(copilot): stream file edits into the live collaborative Y.Doc (keep embedded view collaborative)
| https://github.com/simstudioai/sim/pull/6108/files#top |
|
Show all changes
14 commits
| https://github.com/simstudioai/sim/pull/6108/files |
|
9b6fce6
feat(copilot): stream file edits into the live collaborative Y.Doc
waleedlatif1 Jul 30, 2026
| https://github.com/simstudioai/sim/pull/6108/commits/9b6fce6cd42ae8b3c043bb3d7a7cfccc5e7513e1 |
|
8340290
fix(copilot): order + gate streaming live-doc merges; fast collab fir…
waleedlatif1 Jul 30, 2026
| https://github.com/simstudioai/sim/pull/6108/commits/83402901368024129d702ed23e07e654e0696276 |
|
3dc1378
test(copilot): cover streaming file edits into the live collaborative…
waleedlatif1 Jul 30, 2026
| https://github.com/simstudioai/sim/pull/6108/commits/3dc137859643018eb0d8afad0e3633c467cccf50 |
|
4226987
fix(collab-doc): coordinate live-doc merge ordering in one place; clo…
waleedlatif1 Jul 30, 2026
| https://github.com/simstudioai/sim/pull/6108/commits/42269878b42d0d6e12f13d5b5f94c5d8b5b0d34b |
|
68acab6
fix(copilot): address review — order merges, exclude update, gate thr…
waleedlatif1 Jul 30, 2026
| https://github.com/simstudioai/sim/pull/6108/commits/68acab6cadd6f3bc4cbeee3331c0c91fc736d869 |
|
63a4681
fix(collab-doc): reject stale durable merges at the relay (cross-proc…
waleedlatif1 Jul 30, 2026
| https://github.com/simstudioai/sim/pull/6108/commits/63a4681de7a4665de0f5be9b3065767e16e8ae2e |
|
46212f3
fix(copilot): match durable path — detect markdown by MIME type + nam…
waleedlatif1 Jul 30, 2026
| https://github.com/simstudioai/sim/pull/6108/commits/46212f3e40ad17c529a176a253d576823fff5b79 |
|
b0753ad
test(copilot): assert throttle follow-through after an in-flight merg…
waleedlatif1 Jul 30, 2026
| https://github.com/simstudioai/sim/pull/6108/commits/b0753add8bda352cab6667ee00a129f2453b53cc |
|
e9622e9
fix(collab-doc): order streaming merges by streamedAt so a late snaps…
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6108/commits/e9622e9dbcd509bb3ce1bd9d32fec483f1123720 |
|
6986b74
refactor(collab-doc): tidy merge-order docs + relay order object; cov…
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6108/commits/6986b743557c1d5dbe358e4ff17aed78c5d539de |
|
8a7bca4
fix(collab-doc): order streaming merges by causal base version, not w…
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6108/commits/8a7bca439205e1cdc9330405b9061a8867092246 |
|
d95070f
fix(collab-doc): derive streaming baseVersion as contentUpdatedAt ?? …
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6108/commits/d95070f3e2b43956a3ed7cc72f463b6e6d155b49 |
|
3a5ffbd
fix(collab-doc): fail-closed on a streaming snapshot with no baseVersion
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6108/commits/3a5ffbd7ce98436530c832a13dc8261017f155dd |
|
16fa747
docs(collab-doc): document the accepted concurrent-independent-stream…
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6108/commits/16fa747e32f022e94403fc48a9f36a6a0e2b81f7 |
|
Clear filters
| https://github.com/simstudioai/sim/pull/6108/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/6108/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/6108/files |
|
file-doc.multireplica.test.ts
| https://github.com/simstudioai/sim/pull/6108/files#diff-b3eacab80eca1a4ea602a070635aca4934e6a6fb0fd772d8d7cb66766a22c17c |
|
file-doc.test.ts
| https://github.com/simstudioai/sim/pull/6108/files#diff-e5340b7461b8def251df0b8bcc90796d84ac1296310a7be1230cd374551aae77 |
|
file-doc.ts
| https://github.com/simstudioai/sim/pull/6108/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8 |
|
http.ts
| https://github.com/simstudioai/sim/pull/6108/files#diff-a5f2abd44fc0dacfd92a32198bd0b16f6692b98b4fda17c9ebfde27f36c3f8b9 |
|
rich-markdown-editor.tsx
| https://github.com/simstudioai/sim/pull/6108/files#diff-6ddf250be25a5febc97c8c4a2e0f9e93b869e674efbb9bd43358137571ddc05a |
|
merge.ts
| https://github.com/simstudioai/sim/pull/6108/files#diff-1586be8c43e790ce84a48d20a699a6a8f86532711aa3ed2888a15e5b0df74ed8 |
|
file-preview-adapter.test.ts
| https://github.com/simstudioai/sim/pull/6108/files#diff-2acca0eff9606361f70603bbd34fd985f439949def1ac233f4323ce63c559110 |
|
file-preview-adapter.ts
| https://github.com/simstudioai/sim/pull/6108/files#diff-8f1e3d765fa694dc2a0c644a43c6460448e70a2b73ddf04b18e63b57af4c36af |
|
file-preview-session-contract.ts
| https://github.com/simstudioai/sim/pull/6108/files#diff-20f181afc0c84002d85a4a4d7c7d335fbaead4248e72a6047e5b661046c500ed |
|
file-preview-session.ts
| https://github.com/simstudioai/sim/pull/6108/files#diff-286cad364e380c7c5d87695ebb9e59d9f1248fbf981ad26349b3e517e5236b93 |
|
file-preview.ts
| https://github.com/simstudioai/sim/pull/6108/files#diff-c0f4bbe7acd67a2bf8e294e8070e085ff4b7c0fd9726c0397e07df9dfd554f1f |
|
notify.test.ts
| https://github.com/simstudioai/sim/pull/6108/files#diff-c43a6e3822c47957bd790d0112d299e4eafcbe6fd8e1437f82014c8ddcccb5a3 |
|
notify.ts
| https://github.com/simstudioai/sim/pull/6108/files#diff-1ac32e0ce2f0dadf626f5b0e889359d428bd7a3870fe52a15e2210a8d78287ac |
|
workspace-file-manager.ts
| https://github.com/simstudioai/sim/pull/6108/files#diff-fcf305d0b37403347596bca42fc6889e9038c9f8e2c69ba20676c0f0d8fead34 |
| apps/realtime/src/handlers/file-doc.multireplica.test.ts | https://github.com/simstudioai/sim/pull/6108/files#diff-b3eacab80eca1a4ea602a070635aca4934e6a6fb0fd772d8d7cb66766a22c17c |
|
View file
| https://github.com/simstudioai/sim/blob/16fa747e32f022e94403fc48a9f36a6a0e2b81f7/apps/realtime/src/handlers/file-doc.multireplica.test.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/6108/{{ revealButtonHref }} |
| apps/realtime/src/handlers/file-doc.test.ts | https://github.com/simstudioai/sim/pull/6108/files#diff-e5340b7461b8def251df0b8bcc90796d84ac1296310a7be1230cd374551aae77 |
|
View file
| https://github.com/simstudioai/sim/blob/16fa747e32f022e94403fc48a9f36a6a0e2b81f7/apps/realtime/src/handlers/file-doc.test.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/6108/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-e5340b7461b8def251df0b8bcc90796d84ac1296310a7be1230cd374551aae77 |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-e5340b7461b8def251df0b8bcc90796d84ac1296310a7be1230cd374551aae77 |
| apps/realtime/src/handlers/file-doc.ts | https://github.com/simstudioai/sim/pull/6108/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8 |
|
View file
| https://github.com/simstudioai/sim/blob/16fa747e32f022e94403fc48a9f36a6a0e2b81f7/apps/realtime/src/handlers/file-doc.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/6108/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8 |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8 |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8 |
| Please reload this page | https://github.com/simstudioai/sim/pull/6108/files |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8 |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8 |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8 |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8 |
| apps/realtime/src/routes/http.ts | https://github.com/simstudioai/sim/pull/6108/files#diff-a5f2abd44fc0dacfd92a32198bd0b16f6692b98b4fda17c9ebfde27f36c3f8b9 |
|
View file
| https://github.com/simstudioai/sim/blob/16fa747e32f022e94403fc48a9f36a6a0e2b81f7/apps/realtime/src/routes/http.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/6108/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-a5f2abd44fc0dacfd92a32198bd0b16f6692b98b4fda17c9ebfde27f36c3f8b9 |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-a5f2abd44fc0dacfd92a32198bd0b16f6692b98b4fda17c9ebfde27f36c3f8b9 |
| .../[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.tsx | https://github.com/simstudioai/sim/pull/6108/files#diff-6ddf250be25a5febc97c8c4a2e0f9e93b869e674efbb9bd43358137571ddc05a |
|
View file
| https://github.com/simstudioai/sim/blob/16fa747e32f022e94403fc48a9f36a6a0e2b81f7/apps/sim/app/workspace/%5BworkspaceId%5D/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.tsx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/6108/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-6ddf250be25a5febc97c8c4a2e0f9e93b869e674efbb9bd43358137571ddc05a |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-6ddf250be25a5febc97c8c4a2e0f9e93b869e674efbb9bd43358137571ddc05a |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-6ddf250be25a5febc97c8c4a2e0f9e93b869e674efbb9bd43358137571ddc05a |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-6ddf250be25a5febc97c8c4a2e0f9e93b869e674efbb9bd43358137571ddc05a |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-6ddf250be25a5febc97c8c4a2e0f9e93b869e674efbb9bd43358137571ddc05a |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-6ddf250be25a5febc97c8c4a2e0f9e93b869e674efbb9bd43358137571ddc05a |
| Please reload this page | https://github.com/simstudioai/sim/pull/6108/files |
|
| https://github.com/simstudioai/sim/pull/6108/files#diff-6ddf250be25a5febc97c8c4a2e0f9e93b869e674efbb9bd43358137571ddc05a |
| Please reload this page | https://github.com/simstudioai/sim/pull/6108/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/6108/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |