| 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:198f58c7-72fb-3764-3ec8-a63cdfae8ea8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AEFE:A5723:8D2335:C81414:6AFB5086 |
| html-safe-nonce | abb9b633221d10980b705c77850844aa28e0f7e5f2b1efc70d59e8e3582278bc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUZFOkE1NzIzOjhEMjMzNTpDODE0MTQ6NkFGQjUwODYiLCJ2aXNpdG9yX2lkIjoiMTY1NjQ4NzE2NzUxOTMxNDA1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 60ea2873da806099ac381e39418f4d71aa90d9e6ec68ec58fb2110c74a181ca9 |
| hovercard-subject-tag | pull_request:4469768052 |
| 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/7582/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
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_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/7582/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7582%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%2F7582%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/7582/files |
| Reload | https://github.com/simstudioai/sim/pull/7582/files |
| Reload | https://github.com/simstudioai/sim/pull/7582/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 |
| staging | https://github.com/simstudioai/sim/tree/staging |
| codex/file-editor-followup-fixes | https://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 page | https://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 page | https://github.com/simstudioai/sim/pull/7582/files |
| Please reload this page | https://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.ts | https://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.ts | https://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 page | https://github.com/simstudioai/sim/pull/7582/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/7582/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 |