René's URL Explorer Experiment


Title: fix(sidebar): prefetch folders and workspace permissions on cold load by waleedlatif1 · Pull Request #5426 · simstudioai/sim · GitHub

Open Graph Title: fix(sidebar): prefetch folders and workspace permissions on cold load by waleedlatif1 · Pull Request #5426 · simstudioai/sim

X Title: fix(sidebar): prefetch folders and workspace permissions on cold load by waleedlatif1 · Pull Request #5426 · simstudioai/sim

Description: Sim is the collaborative workspace to build, deploy, and monitor AI agents and workflows. Used by 100,000+ builders. - fix(sidebar): prefetch folders and workspace permissions on cold load by waleedlatif1 · Pull Request #5426 · simstudioai/sim

Open Graph Description: Summary Sidebar workflow list and mothership chat list were already server-prefetched, but the folder list wasn't — so a cold sidebar load painted a flat workflow list, then flashed into folde...

X Description: Summary Sidebar workflow list and mothership chat list were already server-prefetched, but the folder list wasn't — so a cold sidebar load painted a flat workflow list, then flashed into f...

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

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/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:c4938f98-3db9-77a6-f1d7-ed6f0bf5f1c0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC9D4:2C34A2:115897:185BD5:6AFB4C74
html-safe-noncedf60b1cf591fa63a8ce777c2de382a9173cf4c1fca812adb2978bd9297d0a9da
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUQ0OjJDMzRBMjoxMTU4OTc6MTg1QkQ1OjZBRkI0Qzc0IiwidmlzaXRvcl9pZCI6IjM0MDYyMDQ4NjE5MjA1Mjk1MjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1642a5e7512532c46a033e8bb433085368c01677b578a230e835d6dd620645d6
hovercard-subject-tagpull_request:3992537263
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/simstudioai/sim/5426/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ba04c07eee0ce9abdea6850c9d6024f93241f807b4e1857fa29a8942014c9694/simstudioai/sim/pull/5426
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ba04c07eee0ce9abdea6850c9d6024f93241f807b4e1857fa29a8942014c9694/simstudioai/sim/pull/5426
og:image:altSummary Sidebar workflow list and mothership chat list were already server-prefetched, but the folder list wasn't — so a cold sidebar load painted a flat workflow list, then flashed into folde...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewaleedlatif1
hostnamegithub.com
expected-hostnamegithub.com
Noneacf7616d06cc051644705b379878c9bb13dc5e70ecf4ffd9b34140f8ac01d7e1
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release26504db649b58525278f77a52b80ba5f10d5f4de
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5426#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5426
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%2F5426
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/5426
Reloadhttps://github.com/simstudioai/sim/pull/5426
Reloadhttps://github.com/simstudioai/sim/pull/5426
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
https://github.com/simstudioai/sim
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
sidebar-prefetch-folders-permissionshttps://github.com/simstudioai/sim/tree/sidebar-prefetch-folders-permissions
Conversationhttps://github.com/simstudioai/sim/pull/5426
Commits5 (5)https://github.com/simstudioai/sim/pull/5426/commits
Checkshttps://github.com/simstudioai/sim/pull/5426/checks
Files changedhttps://github.com/simstudioai/sim/pull/5426/files
fix(sidebar): prefetch folders and workspace permissions on cold loadhttps://github.com/simstudioai/sim/pull/5426#top
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
sidebar-prefetch-folders-permissionshttps://github.com/simstudioai/sim/tree/sidebar-prefetch-folders-permissions
https://github.com/waleedlatif1
waleedlatif1https://github.com/waleedlatif1
Jul 5, 2026https://github.com/simstudioai/sim/pull/5426#issue-4811471049
Contributor License Agreement (CLA)https://github.com/simstudioai/sim/pull/CONTRIBUTING.md#contributor-license-agreement-cla
Please reload this pagehttps://github.com/simstudioai/sim/pull/5426
https://github.com/waleedlatif1
fix(sidebar): prefetch folders and workspace permissions on cold loadhttps://github.com/simstudioai/sim/pull/5426/commits/cce2e10be5b510cd82daff0e566c1acabb724aef
cce2e10https://github.com/simstudioai/sim/pull/5426/commits/cce2e10be5b510cd82daff0e566c1acabb724aef
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
Jul 5, 2026https://github.com/simstudioai/sim/pull/5426#issuecomment-4884705297
Please reload this pagehttps://github.com/simstudioai/sim/pull/5426
Vercel for GitHubhttps://vercel.link/github-learn-more
docshttps://vercel.com/sim-studio/docs
https://camo.githubusercontent.com/833ba95642364322d56bfc6cc95692affdd7a5a6ca7b50fdcc44aa7e47372d3b/68747470733a2f2f76657263656c2e636f6d2f7374617469632f7374617475732f72656164792e737667
Readyhttps://vercel.com/sim-studio/docs/CtgWT8Nx8gfjAqUukoHCM3Ko34ZT
Previewhttps://docs-git-sidebar-prefetch-folders-permissions-sim-studio.vercel.app
Commenthttps://vercel.live/open-feedback/docs-git-sidebar-prefetch-folders-permissions-sim-studio.vercel.app?via=pr-comment-feedback-link
https://vercel.com/vercel-agent/request-review?owner=simstudioai&repo=sim&pr=5426
Please reload this pagehttps://github.com/simstudioai/sim/pull/5426
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Jul 5, 2026https://github.com/simstudioai/sim/pull/5426#issuecomment-4884705392
Please reload this pagehttps://github.com/simstudioai/sim/pull/5426
Cursor Bugbothttps://cursor.com/bugbot
2a10b88https://github.com/simstudioai/sim/commit/2a10b88e3f59827abae643ba9ef7e8a556eceafe
herehttps://www.cursor.com/dashboard/bugbot
Please reload this pagehttps://github.com/simstudioai/sim/pull/5426
https://github.com/apps/greptile-apps
greptile-appshttps://github.com/apps/greptile-apps
Jul 5, 2026https://github.com/simstudioai/sim/pull/5426#issuecomment-4884714293
Please reload this pagehttps://github.com/simstudioai/sim/pull/5426
%%{init: {'theme': 'neutral'}}%% sequenceDiagram participant RSC as RSC Page (server) participant PF as prefetchWorkspaceSidebar participant DB as Database RSC->>PF: prefetchWorkspaceSidebar(queryClient, workspaceId, userId) PF->>DB: checkWorkspaceAccess (getWorkspaceWithOwner + getEffectiveWorkspacePermission) DB-->>PF: access result alt user cannot access workspace PF-->>RSC: return (skip silently) else user has access par workflows PF->>DB: listWorkflowsForUser DB-->>PF: workflow rows → mapWorkflow[] and chats PF->>DB: listMothershipChats DB-->>PF: chat rows → mapChat[] and folders (NEW) PF->>DB: listFoldersForWorkspace (active) DB-->>PF: folder rows → FolderApi[] → mapFolder[] and permissions (NEW) PF->>DB: getWorkspacePermissionsForViewer note over PF,DB: getWorkspaceWithOwner + getEffectiveWorkspacePermission + getUsersWithPermissions DB-->>PF: WorkspacePermissionsForViewer end PF->>PF: queryClient.setQueryData for all 4 caches PF-->>RSC: return (caches populated) end RSC->>RSC: dehydrate(queryClient) → HydrationBoundary note over RSC: Client receives pre-populated cache — no flash Loading https://github.com/simstudioai/sim/pull/5426#gh-light-mode-only
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% sequenceDiagram participant RSC as RSC Page (server) participant PF as prefetchWorkspaceSidebar participant DB as Database RSC->>PF: prefetchWorkspaceSidebar(queryClient, workspaceId, userId) PF->>DB: checkWorkspaceAccess (getWorkspaceWithOwner + getEffectiveWorkspacePermission) DB-->>PF: access result alt user cannot access workspace PF-->>RSC: return (skip silently) else user has access par workflows PF->>DB: listWorkflowsForUser DB-->>PF: workflow rows → mapWorkflow[] and chats PF->>DB: listMothershipChats DB-->>PF: chat rows → mapChat[] and folders (NEW) PF->>DB: listFoldersForWorkspace (active) DB-->>PF: folder rows → FolderApi[] → mapFolder[] and permissions (NEW) PF->>DB: getWorkspacePermissionsForViewer note over PF,DB: getWorkspaceWithOwner + getEffectiveWorkspacePermission + getUsersWithPermissions DB-->>PF: WorkspacePermissionsForViewer end PF->>PF: queryClient.setQueryData for all 4 caches PF-->>RSC: return (caches populated) end RSC->>RSC: dehydrate(queryClient) → HydrationBoundary note over RSC: Client receives pre-populated cache — no flash Loading https://github.com/simstudioai/sim/pull/5426#gh-dark-mode-only
"fix(folders): reference FOLDER_LIST_STAL..."https://github.com/simstudioai/sim/commit/2a10b88e3f59827abae643ba9ef7e8a556eceafe
Re-trigger Greptilehttps://app.greptile.com/api/retrigger?id=41874032
Please reload this pagehttps://github.com/simstudioai/sim/pull/5426
https://github.com/waleedlatif1
refactor(sidebar): dedupe folder query and permission lookups from /s…https://github.com/simstudioai/sim/pull/5426/commits/b90f78259d55c5f77144ab0cf6668748c0f3ed05
b90f782https://github.com/simstudioai/sim/pull/5426/commits/b90f78259d55c5f77144ab0cf6668748c0f3ed05
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
temporarily deployedhttps://docs-ka6papgr1-sim-studio.vercel.app
July 5, 2026 03:36https://github.com/simstudioai/sim/pull/5426#event-27567335525
https://github.com/waleedlatif1
docs(workspaces): trim getWorkspacePermissionsForViewer tsdoc to matc…https://github.com/simstudioai/sim/pull/5426/commits/9d938278c857c4a6f82b2d6df8bd01cb27a7fc12
9d93827https://github.com/simstudioai/sim/pull/5426/commits/9d938278c857c4a6f82b2d6df8bd01cb27a7fc12
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
temporarily deployedhttps://docs-owp7ppcbt-sim-studio.vercel.app
July 5, 2026 03:39https://github.com/simstudioai/sim/pull/5426#event-27567361841
https://github.com/waleedlatif1
fix(folders): reference FOLDER_LIST_STALE_TIME constant instead of du…https://github.com/simstudioai/sim/pull/5426/commits/2a10b88e3f59827abae643ba9ef7e8a556eceafe
2a10b88https://github.com/simstudioai/sim/pull/5426/commits/2a10b88e3f59827abae643ba9ef7e8a556eceafe
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
temporarily deployedhttps://docs-1l4i2tero-sim-studio.vercel.app
July 5, 2026 03:41https://github.com/simstudioai/sim/pull/5426#event-27567385905
https://github.com/waleedlatif1
waleedlatif1https://github.com/waleedlatif1
Jul 5, 2026 https://github.com/simstudioai/sim/pull/5426#ref-pullrequest-4811541591
refactor(react-query): hoist every staleTime into a named exported constant #5427 https://github.com/simstudioai/sim/pull/5427
https://github.com/waleedlatif1
waleedlatif1https://github.com/waleedlatif1
Jul 5, 2026https://github.com/simstudioai/sim/pull/5426#issuecomment-4884770001
@greptilehttps://github.com/greptile
Please reload this pagehttps://github.com/simstudioai/sim/pull/5426
https://github.com/waleedlatif1
waleedlatif1https://github.com/waleedlatif1
Jul 5, 2026https://github.com/simstudioai/sim/pull/5426#issuecomment-4884770169
@cursorhttps://github.com/cursor
Please reload this pagehttps://github.com/simstudioai/sim/pull/5426
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Jul 5, 2026 https://github.com/simstudioai/sim/pull/5426#pullrequestreview-4630717971
View reviewed changes https://github.com/simstudioai/sim/pull/5426/files/2a10b88e3f59827abae643ba9ef7e8a556eceafe
cursorhttps://github.com/apps/cursor
https://github.com/simstudioai/sim/pull/5426#pullrequestreview-4630717971
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Cursor Bugbothttps://cursor.com/bugbot
2a10b88https://github.com/simstudioai/sim/commit/2a10b88e3f59827abae643ba9ef7e8a556eceafe
herehttps://www.cursor.com/dashboard/bugbot
Please reload this pagehttps://github.com/simstudioai/sim/pull/5426
https://github.com/waleedlatif1
waleedlatif1https://github.com/waleedlatif1
Jul 5, 2026 https://github.com/simstudioai/sim/pull/5426#ref-pullrequest-4813805916
fix(custom-blocks): dedupe redundant workspace lookup in POST admin check #5429 https://github.com/simstudioai/sim/pull/5429
waleedlatif1https://github.com/waleedlatif1
Jul 5, 2026 https://github.com/simstudioai/sim/pull/5426#ref-commit-487166f
https://github.com/waleedlatif1
refactor(react-query): hoist every staleTime into a named exported co…https://github.com/simstudioai/sim/commit/487166f41439fec226ccb4ada49d1ec2ed170240
487166fhttps://github.com/simstudioai/sim/commit/487166f41439fec226ccb4ada49d1ec2ed170240
#5427https://github.com/simstudioai/sim/pull/5427
#5426https://github.com/simstudioai/sim/pull/5426
https://github.com/waleedlatif1
Merge remote-tracking branch 'origin/staging' into sidebar-prefetch-f…https://github.com/simstudioai/sim/pull/5426/commits/d9b40473c9ba7b57f9ce5c77f9acf275759af5fe
d9b4047https://github.com/simstudioai/sim/pull/5426/commits/d9b40473c9ba7b57f9ce5c77f9acf275759af5fe
https://github.com/waleedlatif1
waleedlatif1https://github.com/waleedlatif1
4fa1e04https://github.com/simstudioai/sim/commit/4fa1e045bd5d878d38cd867e134a373077deba52
Jul 5, 2026https://github.com/simstudioai/sim/pull/5426#event-27578197532
Please reload this pagehttps://github.com/simstudioai/sim/pull/5426
https://github.com/waleedlatif1
waleedlatif1https://github.com/waleedlatif1
July 5, 2026 18:05https://github.com/simstudioai/sim/pull/5426#event-27578197987
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://docs-q2ixjb25a-sim-studio.vercel.app
Previewhttps://docs-q2ixjb25a-sim-studio.vercel.app
July 5, 2026 18:08https://github.com/simstudioai/sim/pull/5426#event-27578241276
View deploymenthttps://docs-q2ixjb25a-sim-studio.vercel.app
https://github.com/waleedlatif1
waleedlatif1https://github.com/waleedlatif1
Jul 7, 2026 https://github.com/simstudioai/sim/pull/5426#ref-pullrequest-4824372725
v0.7.24: frontend perf improvements, md editor fixes, mailer fix, tools audit #5458 https://github.com/simstudioai/sim/pull/5458
Deployedhttps://docs-q2ixjb25a-sim-studio.vercel.app
vercel[bot]https://github.com/apps/vercel
View deployment https://docs-q2ixjb25a-sim-studio.vercel.app
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5426
https://github.com/apps/cursor
cursor[bot] https://github.com/apps/cursor
https://github.com/simstudioai/sim/pull/5426/files/2a10b88e3f59827abae643ba9ef7e8a556eceafe
Please reload this pagehttps://github.com/simstudioai/sim/pull/5426
Please reload this pagehttps://github.com/simstudioai/sim/pull/5426
https://github.com/waleedlatif1
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.