| 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:2cdb8c61-af19-7df0-7d74-348a6fc9482c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CDAA:18E6DD:7AAD8E:A944EA:6AFB45C7 |
| html-safe-nonce | 04873483d77039cafed49eb31f56d8d4fdf4ed93494c624d4240bc73e79e8775 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREFBOjE4RTZERDo3QUFEOEU6QTk0NEVBOjZBRkI0NUM3IiwidmlzaXRvcl9pZCI6IjIyMDc2Nzc4OTk5MTYxMzM4MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c0194b0b55173ddea290884a1e89b0a8a3158300c10da73ee1e7674ab62b5f41 |
| hovercard-subject-tag | pull_request:4147220350 |
| 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/5995/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 | Replaces #5986 and #5993, which are closed. Those went through eleven review rounds; this squashes the churn into reviewable commits and carries the streaming rewrite, which removes the memory obje... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | d849b928f455c800985398e7f1b659425adb312a5fa14fba5d9a14e62e9fe5dd |
| 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 | a6c2f87cbcb6414452377b4967858ed6a66f1109 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/simstudioai/sim/pull/5995/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5995%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%2F5995%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/5995/files |
| Reload | https://github.com/simstudioai/sim/pull/5995/files |
| Reload | https://github.com/simstudioai/sim/pull/5995/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 requests199 (199) | 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 |
| fix/files-archive-rendered-documents | https://github.com/simstudioai/sim/tree/fix/files-archive-rendered-documents |
|
Conversation
39
| https://github.com/simstudioai/sim/pull/5995 |
|
Commits
18
| https://github.com/simstudioai/sim/pull/5995/commits |
|
Checks
19
| https://github.com/simstudioai/sim/pull/5995/checks |
|
Files changed
| https://github.com/simstudioai/sim/pull/5995/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/5995/files |
|
fix(files): serve rendered documents and stream workspace archives
| https://github.com/simstudioai/sim/pull/5995/files#top |
|
Show all changes
18 commits
| https://github.com/simstudioai/sim/pull/5995/files |
|
b668d32
fix(files): serve rendered documents instead of generator source
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/b668d32e08e38ed04d0f5a07d57122b9f882154a |
|
8a020d1
perf(files): stream workspace archives instead of buffering them
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/8a020d1444860d77587a2dd40cd6e15404200a3a |
|
6d76dde
improvement(files): surface archive download errors in place
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/6d76dde3eefd9d995ffe70ed774065babc9783f4 |
|
b0f43c7
improvement(files): simplify the archive route and stop buffering rea…
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/b0f43c7001df3dabddbdbabf36e3b57239b3ea53 |
|
98d6b69
improvement(files): keep the lazy entry stream in byte mode
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/98d6b69f2ca3d8917a39bb6178a8e24b08417633 |
|
7d73714
improvement(files): correct the servable reader's 409 note
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/7d73714529abc45a1d9f7c6480fa857a6d9ecaad |
|
d197af1
improvement(files): correct two comments that described the wrong beh…
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/d197af1ca96fe896f32538be1260dc6ca1fa73de |
|
912da6f
fix(files): put streamed files and rendered documents on one byte budget
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/912da6fd45ac38d5f63feb2b5638ac06bcb8cbd5 |
|
2477737
fix(files): attach the download anchor and handle a finalize rejection
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/2477737960fd62c066728da83525259d44282dc5 |
|
65be47e
fix(files): guard the archive download against concurrent clicks
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/65be47e968356870bd8819066e77f0543f21008d |
|
44de9c7
fix(files): resolve every generated-document source type, not four of…
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/44de9c796459860b37183b685c97b7a074320c3a |
|
03882bc
test(files): validate the produced archive with a real zip reader
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/03882bc22986bb5902e71b178a2177584a94315f |
|
7d336b0
fix(files): bound the markdown export's embedded-asset bundling
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/7d336b0cec63371d30ccfcd877d894a60fc2d964 |
|
f89b404
fix(files): mount rendered documents into the sandbox, not generator …
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/f89b40477a7e83d299571cc130e3603e4797b672 |
|
2ec32cd
chore(deps): regenerate the lockfile against staging's dependency rework
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/2ec32cdff365721f88bb44025edf9bcc0586ec28 |
|
30ccdbf
fix(files): budget sandbox mounts on rendered bytes, not declared sou…
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/30ccdbf3ca9666e977ab9e6eadd7a4f9f998564f |
|
9db0867
test(files): cover the two surfaces added without tests
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/9db0867567b09c7e39348bd9cc3a6fbc884c5826 |
|
dcc19cc
fix(files): stop the export caps from rejecting documents that used t…
waleedlatif1 Jul 28, 2026
| https://github.com/simstudioai/sim/pull/5995/commits/dcc19cc9f1f4c1ec11e3bea789a513e5b8cbf1e8 |
|
Clear filters
| https://github.com/simstudioai/sim/pull/5995/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/5995/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/5995/files |
|
route.test.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-cd591b0264baee291a708160d8122658c9999b7e32f09d74b0908bcd874e96fb |
|
route.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-c1d6d66f4d090c56d722fc0d20b0c02464e9d96959db92ecea1553be66affa6a |
|
route.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376 |
|
route.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-e6b64afa5144ec6796154b004bc1322ddc9fcf82f9c4fc961ca13c3cc07ee4b0 |
|
route.integration.test.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-686f978402c5793a975815cdca70d42b89e178bc6a9d28461d35d0c416a59287 |
|
route.test.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-21e96ed9826e90b7329c0f1d4f3cc50878206832cf2989952c81b8bc82adb9c5 |
|
route.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-9409e139d8dc3ad2d247da0545d04306516702ec8fab78b87b3b2eff1186f4f3 |
|
use-editable-file-content.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-0b8b432b66e254eda11f8159084482d71fa80cf6a3bb0765ccfe41420fe82125 |
|
files.tsx
| https://github.com/simstudioai/sim/pull/5995/files#diff-0284e2e46ba0636bd37fb01a0bee2a53844af9bbaf0a5879e3b182c0f34e67a9 |
|
function-execute.test.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-1fe7e00695e323704783e3bb5f37d935df382f45420622d7bd4c480eccbf29d1 |
|
function-execute.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-e6d4d4c49c334453d57aa77c7e31d792717e1d0c94b39df8d6021b98a561c91c |
|
input-validation.server.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-6aff011dd9656fc3e2283ce7a33580a51622749a977dcacb0b75050284426798 |
|
node-stream.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-8b00a5985cd80e78bdcab8d06a3653dfcdf6754ba416abee5205e71093b67d81 |
|
download.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-792c5cfd9d600277ea52e08970dfec8b42adb5439e7ee10c47b19e01f741aa70 |
|
workspace-file-manager.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-fcf305d0b37403347596bca42fc6889e9038c9f8e2c69ba20676c0f0d8fead34 |
|
file-utils.server.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-56073f04957682936465d04d9660e33d45b8f6151b8ce0947b9cfd6ad3e3533e |
|
file-utils.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-ffb723db3f5688d79b0407b2238a775980249044a6ab20e212e0297a248b71e3 |
|
servable-file-response.ts
| https://github.com/simstudioai/sim/pull/5995/files#diff-90f7b005d92dd50db6f68c8b09ea0295cc368be115ebfd9ac5ac631f20253c84 |
|
package.json
| https://github.com/simstudioai/sim/pull/5995/files#diff-43a1bb37ce68ac536b0a4ed9e973d9d52da3975d74b37865f591bb37e191be64 |
|
bun.lock
| https://github.com/simstudioai/sim/pull/5995/files#diff-bfd0ef82a01108fa1e836c2500b98b7de8a92bb1ae352a8efcbd9d6ffcaabd60 |
| apps/sim/app/api/files/export/[id]/route.test.ts | https://github.com/simstudioai/sim/pull/5995/files#diff-cd591b0264baee291a708160d8122658c9999b7e32f09d74b0908bcd874e96fb |
|
View file
| https://github.com/simstudioai/sim/blob/dcc19cc9f1f4c1ec11e3bea789a513e5b8cbf1e8/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/5995/{{ revealButtonHref }} |
| apps/sim/app/api/files/export/[id]/route.ts | https://github.com/simstudioai/sim/pull/5995/files#diff-c1d6d66f4d090c56d722fc0d20b0c02464e9d96959db92ecea1553be66affa6a |
|
View file
| https://github.com/simstudioai/sim/blob/dcc19cc9f1f4c1ec11e3bea789a513e5b8cbf1e8/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/5995/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/5995/files#diff-c1d6d66f4d090c56d722fc0d20b0c02464e9d96959db92ecea1553be66affa6a |
|
| https://github.com/simstudioai/sim/pull/5995/files#diff-c1d6d66f4d090c56d722fc0d20b0c02464e9d96959db92ecea1553be66affa6a |
|
| https://github.com/simstudioai/sim/pull/5995/files#diff-c1d6d66f4d090c56d722fc0d20b0c02464e9d96959db92ecea1553be66affa6a |
|
| https://github.com/simstudioai/sim/pull/5995/files#diff-c1d6d66f4d090c56d722fc0d20b0c02464e9d96959db92ecea1553be66affa6a |
| apps/sim/app/api/tools/file/manage/route.ts | https://github.com/simstudioai/sim/pull/5995/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376 |
|
View file
| https://github.com/simstudioai/sim/blob/dcc19cc9f1f4c1ec11e3bea789a513e5b8cbf1e8/apps/sim/app/api/tools/file/manage/route.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/5995/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/5995/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376 |
|
| https://github.com/simstudioai/sim/pull/5995/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376 |
|
| https://github.com/simstudioai/sim/pull/5995/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376 |
|
| https://github.com/simstudioai/sim/pull/5995/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376 |
|
| https://github.com/simstudioai/sim/pull/5995/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376 |
|
| https://github.com/simstudioai/sim/pull/5995/files#diff-d83cb3ae7797f37be74e772050f9816866e6c2588e054c84190902bce990e376 |
| apps/sim/app/api/v1/files/[fileId]/route.ts | https://github.com/simstudioai/sim/pull/5995/files#diff-e6b64afa5144ec6796154b004bc1322ddc9fcf82f9c4fc961ca13c3cc07ee4b0 |
|
View file
| https://github.com/simstudioai/sim/blob/dcc19cc9f1f4c1ec11e3bea789a513e5b8cbf1e8/apps/sim/app/api/v1/files/%5BfileId%5D/route.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/5995/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/5995/files#diff-e6b64afa5144ec6796154b004bc1322ddc9fcf82f9c4fc961ca13c3cc07ee4b0 |
|
| https://github.com/simstudioai/sim/pull/5995/files#diff-e6b64afa5144ec6796154b004bc1322ddc9fcf82f9c4fc961ca13c3cc07ee4b0 |
|
| https://github.com/simstudioai/sim/pull/5995/files#diff-e6b64afa5144ec6796154b004bc1322ddc9fcf82f9c4fc961ca13c3cc07ee4b0 |
|
| https://github.com/simstudioai/sim/pull/5995/files#diff-e6b64afa5144ec6796154b004bc1322ddc9fcf82f9c4fc961ca13c3cc07ee4b0 |
|
| https://github.com/simstudioai/sim/pull/5995/files#diff-e6b64afa5144ec6796154b004bc1322ddc9fcf82f9c4fc961ca13c3cc07ee4b0 |
| Please reload this page | https://github.com/simstudioai/sim/pull/5995/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/5995/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 |