René's URL Explorer Experiment


Title: fix(realtime): share file editor presence across replicas by mzxchandra · Pull Request #9014 · simstudioai/sim · GitHub

Open Graph Title: fix(realtime): share file editor presence across replicas by mzxchandra · Pull Request #9014 · simstudioai/sim

X Title: fix(realtime): share file editor presence across replicas by mzxchandra · Pull Request #9014 · simstudioai/sim

Description: Summary Collect admitted file-editor sessions across realtime replicas so every editor receives the complete collaborator roster. Keep identities server-authenticated, exclude pending admissions, and refresh each replica's clients without letting overlapping roster reads overwrite newer membership. Type of Change Bug fix Testing Reproduced the asymmetric roster with authenticated clients on two realtime processes sharing Redis before the fix. Browser E2E verified symmetric same-account avatars, edits in both directions, persisted markers exactly once, departure, and rejoin. The repeatable test-file-doc-presence-e2e.ts script passed six real HTTP/socket checks, failed on the pre-fix source, and failed with either replica notification or its listener removed. A suspended-replica experiment reproduced stale avatars without retries and confirmed recovery with bounded retries. Nine additional real socket checks passed, including distinct-user identity, multiple providers, leave, reconnect, and invalid authentication. 63 focused realtime tests and 17 Project document integration tests passed; realtime type-check and changed-file Biome checks passed. Full repository checks run in CI. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing (new tests pass the test-audit authoring gate) 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 Collect admitted file-editor sessions across realtime replicas so every editor receives the complete collaborator roster. Keep identities server-authenticated, exclude pending admissions, ...

X Description: Summary Collect admitted file-editor sessions across realtime replicas so every editor receives the complete collaborator roster. Keep identities server-authenticated, exclude pending admissions, ...

Opengraph URL: https://github.com/simstudioai/sim/pull/9014

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllerpull_requests
route-actionfiles
fetch-noncev2:0326812d-7560-284f-0e9b-03dd030dcb23
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD2E4:2DACD6:273359:370236:6AFB6F0C
html-safe-nonce01482ad1536c5fb23fb3a971054f10976170c8da487a4c4d39ed426bc947b7ee
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkU0OjJEQUNENjoyNzMzNTk6MzcwMjM2OjZBRkI2RjBDIiwidmlzaXRvcl9pZCI6IjQ1NTE1NTY1NTI2OTA0NTg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac204011453bcbca164ef4d4980540352aec0bbe67a635d7a8eba5a75f722a942e
hovercard-subject-tagpull_request:4854661819
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/9014/files
twitter:imagehttps://avatars.githubusercontent.com/u/129460234?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/129460234?s=400&v=4
og:image:altSummary Collect admitted file-editor sessions across realtime replicas so every editor receives the complete collaborator roster. Keep identities server-authenticated, exclude pending admissions, ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release88808b1fae5ab8a526a73e7ce5542a10eb9d6971
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/9014/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9014%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9014%2Ffiles
Sign uphttps://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
Reloadhttps://github.com/simstudioai/sim/pull/9014/files
Reloadhttps://github.com/simstudioai/sim/pull/9014/files
Reloadhttps://github.com/simstudioai/sim/pull/9014/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests198 (198)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
mzxchandrahttps://github.com/mzxchandra
staginghttps://github.com/simstudioai/sim/tree/staging
codex/file-presence-replicashttps://github.com/simstudioai/sim/tree/codex/file-presence-replicas
Conversation 16 https://github.com/simstudioai/sim/pull/9014
Commits 4 https://github.com/simstudioai/sim/pull/9014/commits
Checks 52 https://github.com/simstudioai/sim/pull/9014/checks
Files changed https://github.com/simstudioai/sim/pull/9014/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9014/files
fix(realtime): share file editor presence across replicas https://github.com/simstudioai/sim/pull/9014/files#top
Show all changes 4 commits https://github.com/simstudioai/sim/pull/9014/files
9d5efe9 fix(realtime): share file editor presence across replicas mzxchandra Oct 14, 2026 https://github.com/simstudioai/sim/pull/9014/commits/9d5efe91f553ff771a914b891b311db848f1a39c
b74ce6b test(realtime): update shared document socket fixture mzxchandra Oct 14, 2026 https://github.com/simstudioai/sim/pull/9014/commits/b74ce6bde3e792c914db8ac432b91415a2fdb7c1
2b69736 fix(realtime): refresh presence when reclaiming a session mzxchandra Oct 14, 2026 https://github.com/simstudioai/sim/pull/9014/commits/2b69736a8385a68ec5778b9d85ba7418917f0ab0
4e44100 fix(realtime): retry presence reads and add replica E2E proof mzxchandra Oct 14, 2026 https://github.com/simstudioai/sim/pull/9014/commits/4e441007a3c86a9b7ac5f6a2c6a2bb4322b5ec6d
Clear filters https://github.com/simstudioai/sim/pull/9014/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9014/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9014/files
file-doc.redis-store.test.ts https://github.com/simstudioai/sim/pull/9014/files#diff-ba134050477e72d1cf40f0f7c5d79aa48495f449bb1d4bb6bef75096ecbe1632
file-doc.test.ts https://github.com/simstudioai/sim/pull/9014/files#diff-e5340b7461b8def251df0b8bcc90796d84ac1296310a7be1230cd374551aae77
file-doc.ts https://github.com/simstudioai/sim/pull/9014/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8
auth.ts https://github.com/simstudioai/sim/pull/9014/files#diff-d1964ce80cbbe0b2a556793675b53f06700bee97976d514aefe94cb3e0586e66
test-file-doc-presence-e2e.ts https://github.com/simstudioai/sim/pull/9014/files#diff-9deb6ec5f0c78fda341611f4658e466858ba6867410d0ea37c1ba42563dad880
apps/realtime/src/handlers/file-doc.redis-store.test.tshttps://github.com/simstudioai/sim/pull/9014/files#diff-ba134050477e72d1cf40f0f7c5d79aa48495f449bb1d4bb6bef75096ecbe1632
View file https://github.com/simstudioai/sim/blob/4e441007a3c86a9b7ac5f6a2c6a2bb4322b5ec6d/apps/realtime/src/handlers/file-doc.redis-store.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9014/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9014/files#diff-ba134050477e72d1cf40f0f7c5d79aa48495f449bb1d4bb6bef75096ecbe1632
https://github.com/simstudioai/sim/pull/9014/files#diff-ba134050477e72d1cf40f0f7c5d79aa48495f449bb1d4bb6bef75096ecbe1632
https://github.com/simstudioai/sim/pull/9014/files#diff-ba134050477e72d1cf40f0f7c5d79aa48495f449bb1d4bb6bef75096ecbe1632
apps/realtime/src/handlers/file-doc.test.tshttps://github.com/simstudioai/sim/pull/9014/files#diff-e5340b7461b8def251df0b8bcc90796d84ac1296310a7be1230cd374551aae77
View file https://github.com/simstudioai/sim/blob/4e441007a3c86a9b7ac5f6a2c6a2bb4322b5ec6d/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/9014/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9014/files#diff-e5340b7461b8def251df0b8bcc90796d84ac1296310a7be1230cd374551aae77
Please reload this pagehttps://github.com/simstudioai/sim/pull/9014/files
https://github.com/simstudioai/sim/pull/9014/files#diff-e5340b7461b8def251df0b8bcc90796d84ac1296310a7be1230cd374551aae77
https://github.com/simstudioai/sim/pull/9014/files#diff-e5340b7461b8def251df0b8bcc90796d84ac1296310a7be1230cd374551aae77
https://github.com/simstudioai/sim/pull/9014/files#diff-e5340b7461b8def251df0b8bcc90796d84ac1296310a7be1230cd374551aae77
https://github.com/simstudioai/sim/pull/9014/files#diff-e5340b7461b8def251df0b8bcc90796d84ac1296310a7be1230cd374551aae77
apps/realtime/src/handlers/file-doc.tshttps://github.com/simstudioai/sim/pull/9014/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8
View file https://github.com/simstudioai/sim/blob/4e441007a3c86a9b7ac5f6a2c6a2bb4322b5ec6d/apps/realtime/src/handlers/file-doc.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9014/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9014/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8
Please reload this pagehttps://github.com/simstudioai/sim/pull/9014/files
https://github.com/simstudioai/sim/pull/9014/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8
https://github.com/simstudioai/sim/pull/9014/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8
https://github.com/simstudioai/sim/pull/9014/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8
https://github.com/simstudioai/sim/pull/9014/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8
https://github.com/simstudioai/sim/pull/9014/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8
https://github.com/simstudioai/sim/pull/9014/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8
Please reload this pagehttps://github.com/simstudioai/sim/pull/9014/files
https://github.com/simstudioai/sim/pull/9014/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8
https://github.com/simstudioai/sim/pull/9014/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8
https://github.com/simstudioai/sim/pull/9014/files#diff-d3588b9954ee6e449255c053a6b579f4f687e6afa4ed18f60ab53077ad8411c8
apps/realtime/src/middleware/auth.tshttps://github.com/simstudioai/sim/pull/9014/files#diff-d1964ce80cbbe0b2a556793675b53f06700bee97976d514aefe94cb3e0586e66
View file https://github.com/simstudioai/sim/blob/4e441007a3c86a9b7ac5f6a2c6a2bb4322b5ec6d/apps/realtime/src/middleware/auth.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9014/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9014/files#diff-d1964ce80cbbe0b2a556793675b53f06700bee97976d514aefe94cb3e0586e66
https://github.com/simstudioai/sim/pull/9014/files#diff-d1964ce80cbbe0b2a556793675b53f06700bee97976d514aefe94cb3e0586e66
Please reload this pagehttps://github.com/simstudioai/sim/pull/9014/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9014/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.