René's URL Explorer Experiment


Title: fix(files): preserve editor content and isolate shared image reads by waleedlatif1 · Pull Request #7582 · simstudioai/sim · GitHub

Open Graph Title: fix(files): preserve editor content and isolate shared image reads by waleedlatif1 · Pull Request #7582 · simstudioai/sim

X Title: fix(files): preserve editor content and isolate shared image reads by waleedlatif1 · Pull Request #7582 · simstudioai/sim

Description: Summary Download the currently visible Markdown snapshot, including source-mode drafts, without waiting for persistence or mutating the collaborative document. Rewrite only parsed image occurrences in bundled exports, preserving ordinary links, code, comments and frontmatter. Large source drafts and documents remain available as exact Markdown without image bundling. Separate public document and image rate budgets, authorize individual embedded images beyond the export cap, and exclude comments and raw-source references with bounded streaming HTML parsing. Preserve nested-list and mixed text/image content during Markdown import and collaborative hydration. Keep unsupported heading/table images in the existing source-edit fallback. Leave structural Backspace behavior unchanged where lifting can lose delayed peer edits. No speculative scroll changes. Type of Change Bug fix Testing 2,030 application tests across 103 files and 156 realtime tests across four files passed. Local browser checks covered two-reader editing, undo, reload, streaming snapshot downloads, interrupted-stream recovery, image-heavy documents and a 51-image public share. Local HTTP/Redis checks covered independent rate budgets, refill, share authentication and revocation, visible/hidden image authorization, and export limits. Full application type-check, lint, lint:check, all 46 repository audits, block registry, docs manifest and required generators passed. Cleanup and independent scoped reviews completed. 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 Download the currently visible Markdown snapshot, including source-mode drafts, without waiting for persistence or mutating the collaborative document. Rewrite only parsed image occurrence...

X Description: Summary Download the currently visible Markdown snapshot, including source-mode drafts, without waiting for persistence or mutating the collaborative document. Rewrite only parsed image occurrence...

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

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:198f58c7-72fb-3764-3ec8-a63cdfae8ea8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAEFE:A5723:8D2335:C81414:6AFB5086
html-safe-nonceabb9b633221d10980b705c77850844aa28e0f7e5f2b1efc70d59e8e3582278bc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUZFOkE1NzIzOjhEMjMzNTpDODE0MTQ6NkFGQjUwODYiLCJ2aXNpdG9yX2lkIjoiMTY1NjQ4NzE2NzUxOTMxNDA1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac60ea2873da806099ac381e39418f4d71aa90d9e6ec68ec58fb2110c74a181ca9
hovercard-subject-tagpull_request:4469768052
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/7582/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Download the currently visible Markdown snapshot, including source-mode drafts, without waiting for persistence or mutating the collaborative document. Rewrite only parsed image occurrence...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
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
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/7582/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7582%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%2F7582%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/7582/files
Reloadhttps://github.com/simstudioai/sim/pull/7582/files
Reloadhttps://github.com/simstudioai/sim/pull/7582/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)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
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
codex/file-editor-followup-fixeshttps://github.com/simstudioai/sim/tree/codex/file-editor-followup-fixes
Conversation 12 https://github.com/simstudioai/sim/pull/7582
Commits 2 https://github.com/simstudioai/sim/pull/7582/commits
Checks 37 https://github.com/simstudioai/sim/pull/7582/checks
Files changed https://github.com/simstudioai/sim/pull/7582/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7582/files
fix(files): preserve editor content and isolate shared image reads https://github.com/simstudioai/sim/pull/7582/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/7582/files
78fad5f fix(files): preserve editor content and isolate shared image reads waleedlatif1 Sep 8, 2026 https://github.com/simstudioai/sim/pull/7582/commits/78fad5ff4fc37f9280969e5a2b98af01b2fadcee
4e32e7f fix(files): preserve source drafts and image export fidelity waleedlatif1 Sep 8, 2026 https://github.com/simstudioai/sim/pull/7582/commits/4e32e7f965d06c3d7cb3f3f8950208bd80ec0c07
Clear filters https://github.com/simstudioai/sim/pull/7582/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7582/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7582/files
route.test.ts https://github.com/simstudioai/sim/pull/7582/files#diff-cd591b0264baee291a708160d8122658c9999b7e32f09d74b0908bcd874e96fb
route.ts https://github.com/simstudioai/sim/pull/7582/files#diff-c1d6d66f4d090c56d722fc0d20b0c02464e9d96959db92ecea1553be66affa6a
route.test.ts https://github.com/simstudioai/sim/pull/7582/files#diff-47b8bb9bee115c4303ba63089977ff80048211c4b26d595d53f5d885ef241a66
route.ts https://github.com/simstudioai/sim/pull/7582/files#diff-72139ed47a6fe9576216eb2f23fdfb0698cd9c5b31f0ff0b30e8238a49521860
route.test.ts https://github.com/simstudioai/sim/pull/7582/files#diff-c5754910c059788b5e7f0cc7244dd00e58c1bddebe7f71dd95d7b4faeb303392
route.ts https://github.com/simstudioai/sim/pull/7582/files#diff-3a450a51f58f37dc3814713a5614ed3b47cb409678fbe83ea9be4082dd1b3bb5
file-viewer.tsx https://github.com/simstudioai/sim/pull/7582/files#diff-41f31a97adfda85382418ff71f00df02005b2d85b01516c49967857a1ee0b948
block-image-paragraph.test.ts https://github.com/simstudioai/sim/pull/7582/files#diff-7e88ae9a1a62c581fa10ca836e9c55c9c993e072ab64a502b15a9743796f42d7
block-image-paragraph.ts https://github.com/simstudioai/sim/pull/7582/files#diff-a12c8ebae80aac679a8a92bbcb818f82eecf50a48eb1a9e9d2f5ea2bd09c8dc7
editor-lifecycle.test.tsx https://github.com/simstudioai/sim/pull/7582/files#diff-a9ba25870233b28700778055ce71565387b31603b1b48067c65789edeee77c0b
extensions.ts https://github.com/simstudioai/sim/pull/7582/files#diff-7b00ff67d864b0cefc6bdabee28efdfce930aba686376131939d4f98af1a09ae
list-collaboration.test.ts https://github.com/simstudioai/sim/pull/7582/files#diff-619116a55d40e55053f0d85b0d1ef299741b24c55277763aa1c55ff314e040c8
list-item.test.ts https://github.com/simstudioai/sim/pull/7582/files#diff-e85881c756f7c8001a2027cc38ca1731be492899e575e5b191864d660bc7b38f
list-item.ts https://github.com/simstudioai/sim/pull/7582/files#diff-f295b677688d453bc6fece0f63f1adb47c23d28de0399ed79d1de45fb7f8b821
rich-markdown-editor.tsx https://github.com/simstudioai/sim/pull/7582/files#diff-6ddf250be25a5febc97c8c4a2e0f9e93b869e674efbb9bd43358137571ddc05a
round-trip-safety.test.ts https://github.com/simstudioai/sim/pull/7582/files#diff-40999043e7be1320fa3d8be41fc172b46da102ba6fc0cc737e439809b8a2dff0
round-trip-safety.ts https://github.com/simstudioai/sim/pull/7582/files#diff-bb1ee95fc6a13316149c2f0286aa3b01ab93d5405da6af93ef740438c35b560f
text-editor-sync.test.tsx https://github.com/simstudioai/sim/pull/7582/files#diff-c1c7c1d19a5ecd656c3a38b530dce6c960435e9b4b7a200be2f40ecfa0dac188
text-editor.tsx https://github.com/simstudioai/sim/pull/7582/files#diff-bce088100e2dad0d23389b5dda16162b243a95a93f6113c160850d608188b567
files.tsx https://github.com/simstudioai/sim/pull/7582/files#diff-0284e2e46ba0636bd37fb01a0bee2a53844af9bbaf0a5879e3b182c0f34e67a9
resource-content.test.tsx https://github.com/simstudioai/sim/pull/7582/files#diff-1564ab628f51afb086919745e4cb1da298813ac8cf0fb38ab204ce4d2945ff7e
resource-content.tsx https://github.com/simstudioai/sim/pull/7582/files#diff-80c90fc9e418548394644fd871082cb97350068ea29717e5b8384ff4c3140617
mothership-view.tsx https://github.com/simstudioai/sim/pull/7582/files#diff-db5280c2b2a6342e88c19859fa4e796b2cb8744c361e0249e1907e75e21b8ab0
workspace-files.ts https://github.com/simstudioai/sim/pull/7582/files#diff-05f84543b5a8f478260ff33a6503250494619411c41c9f43523e352d8fe8bc37
rate-limit.test.ts https://github.com/simstudioai/sim/pull/7582/files#diff-bfda1f98e60db49f667f6066b9ea35b3c1bbecc8da9c7553e83aaea6481a9a67
rate-limit.ts https://github.com/simstudioai/sim/pull/7582/files#diff-7cdf2f60dc440cefc2e28d8acdba86fb67d4a07a3c48995566f55842b401d443
download.test.ts https://github.com/simstudioai/sim/pull/7582/files#diff-159abfd488d5e6007b5fe158c035443cc3e6fa33f76ce499bca3ec135ba380c2
download.ts https://github.com/simstudioai/sim/pull/7582/files#diff-792c5cfd9d600277ea52e08970dfec8b42adb5439e7ee10c47b19e01f741aa70
embedded-image-refs.test.ts https://github.com/simstudioai/sim/pull/7582/files#diff-f7eadaab547b101cb0a2f39b302276b242b7392ffb7e181741f03d23721cea72
embedded-image-refs.ts https://github.com/simstudioai/sim/pull/7582/files#diff-c4f00b90a27b4d5d9763cd2aaf4fafdcac5f21134acb3276bb8ecc17bf4ca938
markdown-export.test.ts https://github.com/simstudioai/sim/pull/7582/files#diff-0a9751c14718494bd14594e379ba4439621387e5959a8e9c883b949b639703eb
markdown-export.ts https://github.com/simstudioai/sim/pull/7582/files#diff-9172943eb6cf65f24194e11ad6fc8c4da31bf4d7b122cdeb16513e6d5998c9d5
export-workspace-file-snapshot.test.ts https://github.com/simstudioai/sim/pull/7582/files#diff-c960407464773d8aa16b6a72b4bce05ccc01c9f2f70acd14d4071c0eeb38180c
export-workspace-file-snapshot.ts https://github.com/simstudioai/sim/pull/7582/files#diff-ce83c21789637fa60d7741bfb8b3182b9fc5d741fbc4dae292fef2c12424d43f
package.json https://github.com/simstudioai/sim/pull/7582/files#diff-43a1bb37ce68ac536b0a4ed9e973d9d52da3975d74b37865f591bb37e191be64
bun.lock https://github.com/simstudioai/sim/pull/7582/files#diff-bfd0ef82a01108fa1e836c2500b98b7de8a92bb1ae352a8efcbd9d6ffcaabd60
apps/sim/app/api/files/export/[id]/route.test.tshttps://github.com/simstudioai/sim/pull/7582/files#diff-cd591b0264baee291a708160d8122658c9999b7e32f09d74b0908bcd874e96fb
View file https://github.com/simstudioai/sim/blob/4e32e7f965d06c3d7cb3f3f8950208bd80ec0c07/apps/sim/app/api/files/export/%5Bid%5D/route.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7582/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7582/files#diff-cd591b0264baee291a708160d8122658c9999b7e32f09d74b0908bcd874e96fb
https://github.com/simstudioai/sim/pull/7582/files#diff-cd591b0264baee291a708160d8122658c9999b7e32f09d74b0908bcd874e96fb
https://github.com/simstudioai/sim/pull/7582/files#diff-cd591b0264baee291a708160d8122658c9999b7e32f09d74b0908bcd874e96fb
https://github.com/simstudioai/sim/pull/7582/files#diff-cd591b0264baee291a708160d8122658c9999b7e32f09d74b0908bcd874e96fb
https://github.com/simstudioai/sim/pull/7582/files#diff-cd591b0264baee291a708160d8122658c9999b7e32f09d74b0908bcd874e96fb
https://github.com/simstudioai/sim/pull/7582/files#diff-cd591b0264baee291a708160d8122658c9999b7e32f09d74b0908bcd874e96fb
apps/sim/app/api/files/export/[id]/route.tshttps://github.com/simstudioai/sim/pull/7582/files#diff-c1d6d66f4d090c56d722fc0d20b0c02464e9d96959db92ecea1553be66affa6a
View file https://github.com/simstudioai/sim/blob/4e32e7f965d06c3d7cb3f3f8950208bd80ec0c07/apps/sim/app/api/files/export/%5Bid%5D/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7582/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7582/files#diff-c1d6d66f4d090c56d722fc0d20b0c02464e9d96959db92ecea1553be66affa6a
https://github.com/simstudioai/sim/pull/7582/files#diff-c1d6d66f4d090c56d722fc0d20b0c02464e9d96959db92ecea1553be66affa6a
https://github.com/simstudioai/sim/pull/7582/files#diff-c1d6d66f4d090c56d722fc0d20b0c02464e9d96959db92ecea1553be66affa6a
https://github.com/simstudioai/sim/pull/7582/files#diff-c1d6d66f4d090c56d722fc0d20b0c02464e9d96959db92ecea1553be66affa6a
https://github.com/simstudioai/sim/pull/7582/files#diff-c1d6d66f4d090c56d722fc0d20b0c02464e9d96959db92ecea1553be66affa6a
https://github.com/simstudioai/sim/pull/7582/files#diff-c1d6d66f4d090c56d722fc0d20b0c02464e9d96959db92ecea1553be66affa6a
https://github.com/simstudioai/sim/pull/7582/files#diff-c1d6d66f4d090c56d722fc0d20b0c02464e9d96959db92ecea1553be66affa6a
Please reload this pagehttps://github.com/simstudioai/sim/pull/7582/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7582/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.