| 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:f9aa894c-f4e5-a63f-9477-ef0a56600f45 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C83C:AE1F3:288644:390C2D:6AFB52DB |
| html-safe-nonce | e3c3d93b9601dd026c231d699ab90150b41ab387de12a0121e098483fe5ca22c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODNDOkFFMUYzOjI4ODY0NDozOTBDMkQ6NkFGQjUyREIiLCJ2aXNpdG9yX2lkIjoiNjM3NzgxMDc1OTI1MDk1MTMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4c29308f8c501227a2baa7d9ba2a775e82388a9518eec494251609406e99fbc6 |
| hovercard-subject-tag | pull_request:4175317764 |
| 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/6122/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
Copilot/agent file edits now stream smoothly and collaboratively into the file editor — matching how streaming looks on main, without breaking collaboration.
The open editor applies the gr... |
| 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 |
| Skip to content | https://github.com/simstudioai/sim/pull/6122/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6122%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%2F6122%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/6122/files |
| Reload | https://github.com/simstudioai/sim/pull/6122/files |
| Reload | https://github.com/simstudioai/sim/pull/6122/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 |
| files-smooth-collab-streaming | https://github.com/simstudioai/sim/tree/files-smooth-collab-streaming |
|
Conversation
72
| https://github.com/simstudioai/sim/pull/6122 |
|
Commits
15
| https://github.com/simstudioai/sim/pull/6122/commits |
|
Checks
5
| https://github.com/simstudioai/sim/pull/6122/checks |
|
Files changed
| https://github.com/simstudioai/sim/pull/6122/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/6122/files |
|
feat(files): stream copilot edits into the collaborative doc smoothly
| https://github.com/simstudioai/sim/pull/6122/files#top |
|
Show all changes
15 commits
| https://github.com/simstudioai/sim/pull/6122/files |
|
ae8c7a5
feat(files): stream copilot edits into the collaborative doc smoothly
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6122/commits/ae8c7a53632f5776904cb2bad994f18df3cc9a6a |
|
240e314
fix(files): apply agent stream as a true CRDT peer + guard base-less …
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6122/commits/240e314212a43b408a078d0760e374e69d1959b2 |
|
7b2bc18
fix(files): destroy the agent shadow deterministically on settle
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6122/commits/7b2bc180dbeb31d43ca4f7ed7277ffc894f0dfae |
|
6b23e8a
fix(files): agent stream frames skip the relay's durable persist
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6122/commits/6b23e8acf4b6786292db2915dbbd4811c1e6e4c4 |
|
db571c4
fix(files): open the stream shadow at start + private extend baseline
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6122/commits/db571c4059104b09014ca1a594d3a18be67d9b7d |
|
eb2db57
fix(files): fail-close base-less previews + operation-based stream hold
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6122/commits/eb2db57bca51a916cc9c4363cb879fd29ab011f0 |
|
59a10a7
fix(files): elect a single agent-stream writer across tabs
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6122/commits/59a10a7b93695ecb324f98289e286f82f4958eb8 |
|
0197940
fix(files): gate the settle apply locally, not on a settle-time re-el…
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6122/commits/019794055f95c4ce971d8856c18b839d9545f7c3 |
|
3ef00a1
fix(files): open the agent-stream shadow lazily on lead (no stale han…
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6122/commits/3ef00a1bef67a33303904ae895a90527ebb7610d |
|
a49c118
fix(files): idempotent settle apply (update lands client-side; no str…
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6122/commits/a49c118c24b84f24cada5d0a515c88803b0f7ec0 |
|
f3f7b7a
fix(files): broadcast agent frames to the whole room (same-socket sib…
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6122/commits/f3f7b7a8f269558bd29fb1801ead87fff6d3883f |
|
888496f
fix(files): tag agent stream frames no-persist across replicas
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6122/commits/888496f324fd092a96d02d6e13f3530ef9819305 |
|
96fd287
fix(files): reseed agent shadow on lead regain + agent-only compaction
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6122/commits/96fd287bcedbef7552d872501bc78c23721e9fda |
|
8f93e66
fix(files): close realEdited data-loss race + elect a settle writer
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6122/commits/8f93e66bc98eb43d36422305c7c232b3150535e4 |
|
ca81494
fix(files): own presence per client id, not one-per-socket
waleedlatif1 Jul 31, 2026
| https://github.com/simstudioai/sim/pull/6122/commits/ca81494072acec7b39ed851768e71b1cd8ed5fe1 |
|
Clear filters
| https://github.com/simstudioai/sim/pull/6122/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/6122/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/6122/files |
|
file-doc-store.test.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-58c1d3c2df2d2addcfb82a354e84729e7678b1363a0bcb22e86028034659f3fc |
|
file-doc-store.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
|
file-doc.multireplica.test.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-b3eacab80eca1a4ea602a070635aca4934e6a6fb0fd772d8d7cb66766a22c17c |
|
file-doc.test.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-e5340b7461b8def251df0b8bcc90796d84ac1296310a7be1230cd374551aae77 |
|
file-doc.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8 |
|
http.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-a5f2abd44fc0dacfd92a32198bd0b16f6692b98b4fda17c9ebfde27f36c3f8b9 |
|
file-viewer.tsx
| https://github.com/simstudioai/sim/pull/6122/files#diff-41f31a97adfda85382418ff71f00df02005b2d85b01516c49967857a1ee0b948 |
|
agent-stream-leader.test.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-105aaaeb09244e7b6d4f89d80141e467c891b6a9460d100d1d78519cf2819fff |
|
agent-stream-leader.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-eb3be8a2377450db82886a9cf3fce65bcfdbb8b8b57f679bb3c16300582f8457 |
|
apply-streamed-markdown.test.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-3d35b44d47b64f0be8533ae623f9d39d510c84483972d29c5ce1ca850fde3c39 |
|
apply-streamed-markdown.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-074618b5e7ca1b0bf11c32c32af05b4e95c19cb946a567b6b1ffdf9a662ca64e |
|
file-doc-provider.test.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-86ca687225a7128b114120aeef6e5609bd452da7c03292cf199518373ace515d |
|
file-doc-provider.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-598531064700e61a529706f022aa7de5653fea72bca2dfd7a0ca6ab621a666b2 |
|
rich-markdown-editor.tsx
| https://github.com/simstudioai/sim/pull/6122/files#diff-6ddf250be25a5febc97c8c4a2e0f9e93b869e674efbb9bd43358137571ddc05a |
|
resource-content.tsx
| https://github.com/simstudioai/sim/pull/6122/files#diff-80c90fc9e418548394644fd871082cb97350068ea29717e5b8384ff4c3140617 |
|
file-preview-adapter.test.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-2acca0eff9606361f70603bbd34fd985f439949def1ac233f4323ce63c559110 |
|
file-preview-adapter.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-8f1e3d765fa694dc2a0c644a43c6460448e70a2b73ddf04b18e63b57af4c36af |
|
file-preview-session-contract.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-20f181afc0c84002d85a4a4d7c7d335fbaead4248e72a6047e5b661046c500ed |
|
file-preview-session.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-286cad364e380c7c5d87695ebb9e59d9f1248fbf981ad26349b3e517e5236b93 |
|
file-preview.test.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-47e6de21b37606b7b095a9b7bdde5d964c64485852e764d2e654e31d5b9d744a |
|
file-preview.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-c0f4bbe7acd67a2bf8e294e8070e085ff4b7c0fd9726c0397e07df9dfd554f1f |
|
notify.test.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-c43a6e3822c47957bd790d0112d299e4eafcbe6fd8e1437f82014c8ddcccb5a3 |
|
notify.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-1ac32e0ce2f0dadf626f5b0e889359d428bd7a3870fe52a15e2210a8d78287ac |
|
file-doc.ts
| https://github.com/simstudioai/sim/pull/6122/files#diff-bd163d5b3b9fb43f7bbeb3bd7248e735cf4f29c19bf08f24055e0a4f986f1d78 |
| apps/realtime/src/handlers/file-doc-store.test.ts | https://github.com/simstudioai/sim/pull/6122/files#diff-58c1d3c2df2d2addcfb82a354e84729e7678b1363a0bcb22e86028034659f3fc |
|
View file
| https://github.com/simstudioai/sim/blob/ca81494072acec7b39ed851768e71b1cd8ed5fe1/apps/realtime/src/handlers/file-doc-store.test.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/6122/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-58c1d3c2df2d2addcfb82a354e84729e7678b1363a0bcb22e86028034659f3fc |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-58c1d3c2df2d2addcfb82a354e84729e7678b1363a0bcb22e86028034659f3fc |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-58c1d3c2df2d2addcfb82a354e84729e7678b1363a0bcb22e86028034659f3fc |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-58c1d3c2df2d2addcfb82a354e84729e7678b1363a0bcb22e86028034659f3fc |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-58c1d3c2df2d2addcfb82a354e84729e7678b1363a0bcb22e86028034659f3fc |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-58c1d3c2df2d2addcfb82a354e84729e7678b1363a0bcb22e86028034659f3fc |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-58c1d3c2df2d2addcfb82a354e84729e7678b1363a0bcb22e86028034659f3fc |
| apps/realtime/src/handlers/file-doc-store.ts | https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
|
View file
| https://github.com/simstudioai/sim/blob/ca81494072acec7b39ed851768e71b1cd8ed5fe1/apps/realtime/src/handlers/file-doc-store.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/6122/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
| Please reload this page | https://github.com/simstudioai/sim/pull/6122/files |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-0d8e8ff53357fcf40d72aa618fbdca8f29efe869c7b227b75f304bdece2cde6a |
| apps/realtime/src/handlers/file-doc.multireplica.test.ts | https://github.com/simstudioai/sim/pull/6122/files#diff-b3eacab80eca1a4ea602a070635aca4934e6a6fb0fd772d8d7cb66766a22c17c |
|
View file
| https://github.com/simstudioai/sim/blob/ca81494072acec7b39ed851768e71b1cd8ed5fe1/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/6122/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/6122/files#diff-b3eacab80eca1a4ea602a070635aca4934e6a6fb0fd772d8d7cb66766a22c17c |
| Please reload this page | https://github.com/simstudioai/sim/pull/6122/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/6122/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 |