| 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:bbf9ab5f-4ba6-defb-e257-4d555aabf66a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9942:223074:28D83A:399213:6AFB6EFC |
| html-safe-nonce | 05a7cb812db60e5a8420f84965759cc01bcc5ba6e85f3632d9b3fdf4995454e2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTQyOjIyMzA3NDoyOEQ4M0E6Mzk5MjEzOjZBRkI2RUZDIiwidmlzaXRvcl9pZCI6IjMxNTA4Nzk3NDIwNTE5NzA4MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 63fa06c62b91c55047cfd89d76aa591433c7846d1c0a51e93ce6246a3cc32351 |
| hovercard-subject-tag | pull_request:3617363558 |
| 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/4402/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
Add `/api/files/view/[id]` route that resolves a file ID to its serve URL via 302 redirect (auth + access-checked)
Detect relative workspace file page URLs in markdown `img` tags and rewri... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700 |
| 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 | 88808b1fae5ab8a526a73e7ce5542a10eb9d6971 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/simstudioai/sim/pull/4402/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4402%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%2F4402%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/4402/files |
| Reload | https://github.com/simstudioai/sim/pull/4402/files |
| Reload | https://github.com/simstudioai/sim/pull/4402/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 requests198 (198) | 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/csp | https://github.com/simstudioai/sim/tree/fix/csp |
|
Conversation
26
| https://github.com/simstudioai/sim/pull/4402 |
|
Commits
18
| https://github.com/simstudioai/sim/pull/4402/commits |
|
Checks
12
| https://github.com/simstudioai/sim/pull/4402/checks |
|
Files changed
| https://github.com/simstudioai/sim/pull/4402/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/4402/files |
|
feat(files): embed sim files and render mermaid diagrams in markdown preview
| https://github.com/simstudioai/sim/pull/4402/files#top |
|
Show all changes
18 commits
| https://github.com/simstudioai/sim/pull/4402/files |
|
31850ae
feat(files): resolve workspace file page URLs to raw content in markd…
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/31850aefd125104c41447a5a0e8fdba1fba107a6 |
|
46f0326
refactor(files): replace regex URL matching with URL constructor in r…
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/46f0326ac3acba8e4d81e1f449f8a9e491f71fb8 |
|
deb687b
fix(files): render mermaid diagrams in markdown preview using design …
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/deb687b5be9242eb153b128332d1c0ab3ec89482 |
|
ea7817c
fix(trace): reduce default tree pane width from 360 to 280
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/ea7817c6d21754daeb852fdd8031588e9dda70a1 |
|
9e5dbef
fix(files): guard resolveSimFileUrl against cross-origin URL hijacking
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/9e5dbef1501be0281c56faa698123c1fcf24e857 |
|
134e30d
refactor(files): use getBrowserOrigin() instead of window.location.or…
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/134e30d709fff569d0c23e74eeae19ced07da4f9 |
|
a1f7037
fix(trace): reduce default tree pane width to 240
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/a1f7037f3897c4d52abea9e175e83d910ebb2c1c |
|
701ad2b
fix(files): narrow img src type before passing to resolveSimFileUrl
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/701ad2b175424303f1ce08d4e911ddeb4d38bf01 |
|
9fc1a4f
fix(files): use narrow props type for img renderer instead of runtime…
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/9fc1a4f7bd51c061846e929e8149005a678fe6d9 |
|
7915211
fix(files): accept full ImgHTMLAttributes for img renderer to satisfy…
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/7915211055f5f9cd52ffa1baf16bad54d0da9578 |
|
d8ce2c9
fix(files): treat null getBrowserOrigin as same-origin to prevent SSR…
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/d8ce2c95f50b3bdb4d3ceab834fe68f5911ae72d |
|
95b186d
improvement(files): use centered aspect-ratio skeleton for mmd file p…
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/95b186d7911a55b7cf96b1a21d3a32158201a72d |
|
2d3993f
improvement(files): diagram-shaped skeleton card for mmd file preview
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/2d3993f2898fa25ad4c8d4dedb122b4e1571f801 |
|
446d9e3
fix(files): only rewrite relative workspace file URLs to avoid hydrat…
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/446d9e3aa61cf545f3063321a8723d7bd2eb8b8a |
|
9cb28da
fix(files): pass context not resolved params to parseRequest in view …
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/9cb28da008a38cf2c943d6d364ec0504b04b9336 |
|
6642893
fix(files): simplify mmd file skeleton to match pptx card pattern
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/6642893df32145c5947ea88005c0cfd5da1f200a |
|
380388c
fix(files): match mmd skeleton to actual rendered layout — full-heigh…
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/380388c2b59fdb78f59744c4a7caa905bc6457e5 |
|
66207c4
fix(sidebar): left-align folder lock icon next to name
waleedlatif1 May 2, 2026
| https://github.com/simstudioai/sim/pull/4402/commits/66207c43ff445e80a936efb2a4d7ac2ca25ffeb5 |
|
Clear filters
| https://github.com/simstudioai/sim/pull/4402/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/4402/files |
| Please reload this page | https://github.com/simstudioai/sim/pull/4402/files |
|
route.ts
| https://github.com/simstudioai/sim/pull/4402/files#diff-c0c7b7de9bec1950223efb32e2b34a40c62a55b07d0122f860ab10768e2ac569 |
|
preview-panel.tsx
| https://github.com/simstudioai/sim/pull/4402/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2 |
|
trace-view.tsx
| https://github.com/simstudioai/sim/pull/4402/files#diff-f73fd911a20f3ad980b736fa14c8bb47bee1bb576ab40ec66cb8eba63065303c |
|
folder-item.tsx
| https://github.com/simstudioai/sim/pull/4402/files#diff-d0bf23590be08985090d1f3e3081773b400e76d913c283bb6a1a57518d0bae12 |
|
storage-transfer.ts
| https://github.com/simstudioai/sim/pull/4402/files#diff-863f7d0ace58810918b90840a39c43967e8aad8f46cb539d2dacd9c41085c36b |
|
metadata.ts
| https://github.com/simstudioai/sim/pull/4402/files#diff-1de12a134a12569e530e519c085fb87fc17011a093468e8ae4cc6f1c1ff0f370 |
| apps/sim/app/api/files/view/[id]/route.ts | https://github.com/simstudioai/sim/pull/4402/files#diff-c0c7b7de9bec1950223efb32e2b34a40c62a55b07d0122f860ab10768e2ac569 |
|
View file
| https://github.com/simstudioai/sim/blob/66207c43ff445e80a936efb2a4d7ac2ca25ffeb5/apps/sim/app/api/files/view/%5Bid%5D/route.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/4402/{{ revealButtonHref }} |
| apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/preview-panel.tsx | https://github.com/simstudioai/sim/pull/4402/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2 |
|
View file
| https://github.com/simstudioai/sim/blob/66207c43ff445e80a936efb2a4d7ac2ca25ffeb5/apps/sim/app/workspace/%5BworkspaceId%5D/files/components/file-viewer/preview-panel.tsx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/4402/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2 |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2 |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2 |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2 |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2 |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2 |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2 |
| Please reload this page | https://github.com/simstudioai/sim/pull/4402/files |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2 |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2 |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2 |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2 |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2 |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2 |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2 |
| .../workspace/[workspaceId]/logs/components/log-details/components/trace-view/trace-view.tsx | https://github.com/simstudioai/sim/pull/4402/files#diff-f73fd911a20f3ad980b736fa14c8bb47bee1bb576ab40ec66cb8eba63065303c |
|
View file
| https://github.com/simstudioai/sim/blob/66207c43ff445e80a936efb2a4d7ac2ca25ffeb5/apps/sim/app/workspace/%5BworkspaceId%5D/logs/components/log-details/components/trace-view/trace-view.tsx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/4402/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-f73fd911a20f3ad980b736fa14c8bb47bee1bb576ab40ec66cb8eba63065303c |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-f73fd911a20f3ad980b736fa14c8bb47bee1bb576ab40ec66cb8eba63065303c |
| ...eId]/w/components/sidebar/components/workflow-list/components/folder-item/folder-item.tsx | https://github.com/simstudioai/sim/pull/4402/files#diff-d0bf23590be08985090d1f3e3081773b400e76d913c283bb6a1a57518d0bae12 |
|
View file
| https://github.com/simstudioai/sim/blob/66207c43ff445e80a936efb2a4d7ac2ca25ffeb5/apps/sim/app/workspace/%5BworkspaceId%5D/w/components/sidebar/components/workflow-list/components/folder-item/folder-item.tsx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/4402/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-d0bf23590be08985090d1f3e3081773b400e76d913c283bb6a1a57518d0bae12 |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-d0bf23590be08985090d1f3e3081773b400e76d913c283bb6a1a57518d0bae12 |
| apps/sim/lib/api/contracts/storage-transfer.ts | https://github.com/simstudioai/sim/pull/4402/files#diff-863f7d0ace58810918b90840a39c43967e8aad8f46cb539d2dacd9c41085c36b |
|
View file
| https://github.com/simstudioai/sim/blob/66207c43ff445e80a936efb2a4d7ac2ca25ffeb5/apps/sim/lib/api/contracts/storage-transfer.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/4402/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-863f7d0ace58810918b90840a39c43967e8aad8f46cb539d2dacd9c41085c36b |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-863f7d0ace58810918b90840a39c43967e8aad8f46cb539d2dacd9c41085c36b |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-863f7d0ace58810918b90840a39c43967e8aad8f46cb539d2dacd9c41085c36b |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-863f7d0ace58810918b90840a39c43967e8aad8f46cb539d2dacd9c41085c36b |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-863f7d0ace58810918b90840a39c43967e8aad8f46cb539d2dacd9c41085c36b |
| apps/sim/lib/uploads/server/metadata.ts | https://github.com/simstudioai/sim/pull/4402/files#diff-1de12a134a12569e530e519c085fb87fc17011a093468e8ae4cc6f1c1ff0f370 |
|
View file
| https://github.com/simstudioai/sim/blob/66207c43ff445e80a936efb2a4d7ac2ca25ffeb5/apps/sim/lib/uploads/server/metadata.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/4402/{{ revealButtonHref }} |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-1de12a134a12569e530e519c085fb87fc17011a093468e8ae4cc6f1c1ff0f370 |
|
| https://github.com/simstudioai/sim/pull/4402/files#diff-1de12a134a12569e530e519c085fb87fc17011a093468e8ae4cc6f1c1ff0f370 |
| Please reload this page | https://github.com/simstudioai/sim/pull/4402/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 |