| 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 | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:0962776e-910c-08fd-2e15-0f3a5ab6ae1d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E93A:BB648:8479CD:B63E78:6AFB471D |
| html-safe-nonce | 74978225f4a99fc538b8dc470627cee2f8960b8ff8a6f0cfdd693b4333dd5360 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTNBOkJCNjQ4Ojg0NzlDRDpCNjNFNzg6NkFGQjQ3MUQiLCJ2aXNpdG9yX2lkIjoiNjk3NzAwNzg2MjU1OTc1NDAxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6fecea0db73de71448e05b8bf3a4923c37e1145fe04fa2ce403a25a0fdbb0438 |
| hovercard-subject-tag | pull_request:3870035018 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/simstudioai/sim/5059/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/7d46b349565990202790b0983172e3ec292936879a255dfac4d79230bbcbcfee/simstudioai/sim/pull/5059 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7d46b349565990202790b0983172e3ec292936879a255dfac4d79230bbcbcfee/simstudioai/sim/pull/5059 |
| og:image:alt | Summary
New lib/core/config/feature-flags.ts: runtime feature flags gated by org id, user id, or admin — AppConfig-backed on prod (reuses fetchAppConfigProfile), with an in-file DEFAULT_FEATURE_FL... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TheodoreSpeaks |
| hostname | github.com |
| expected-hostname | github.com |
| None | acf7616d06cc051644705b379878c9bb13dc5e70ecf4ffd9b34140f8ac01d7e1 |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 26504db649b58525278f77a52b80ba5f10d5f4de |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/simstudioai/sim/pull/5059#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5059 |
| 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%2F5059 |
| 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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=simstudioai%2Fsim |
| Reload | https://github.com/simstudioai/sim/pull/5059 |
| Reload | https://github.com/simstudioai/sim/pull/5059 |
| Reload | https://github.com/simstudioai/sim/pull/5059 |
| 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 |
| https://github.com/simstudioai/sim |
| TheodoreSpeaks | https://github.com/TheodoreSpeaks |
| staging | https://github.com/simstudioai/sim/tree/staging |
| feat/appconfig-backed-feature-flag | https://github.com/simstudioai/sim/tree/feat/appconfig-backed-feature-flag |
| Conversation | https://github.com/simstudioai/sim/pull/5059 |
| Commits7 (7) | https://github.com/simstudioai/sim/pull/5059/commits |
| Checks | https://github.com/simstudioai/sim/pull/5059/checks |
| Files changed | https://github.com/simstudioai/sim/pull/5059/files |
| feat(feature-flags): AppConfig-backed gated feature flags | https://github.com/simstudioai/sim/pull/5059#top |
| TheodoreSpeaks | https://github.com/TheodoreSpeaks |
| staging | https://github.com/simstudioai/sim/tree/staging |
| feat/appconfig-backed-feature-flag | https://github.com/simstudioai/sim/tree/feat/appconfig-backed-feature-flag |
|
| https://github.com/TheodoreSpeaks |
| TheodoreSpeaks | https://github.com/TheodoreSpeaks |
| Jun 15, 2026 | https://github.com/simstudioai/sim/pull/5059#issue-4667727334 |
| Contributor License Agreement (CLA) | https://github.com/simstudioai/sim/pull/CONTRIBUTING.md#contributor-license-agreement-cla |
| Please reload this page | https://github.com/simstudioai/sim/pull/5059 |
|
| https://github.com/TheodoreSpeaks |
| feat(feature-flags): AppConfig-backed gated feature flags | https://github.com/simstudioai/sim/pull/5059/commits/b485a5a0a2d3992cdb131e8d620c29338999f3b0 |
| b485a5a | https://github.com/simstudioai/sim/pull/5059/commits/b485a5a0a2d3992cdb131e8d620c29338999f3b0 |
| https://github.com/apps/vercel |
| vercel | https://github.com/apps/vercel |
| Jun 15, 2026 | https://github.com/simstudioai/sim/pull/5059#issuecomment-4711007701 |
| Please reload this page | https://github.com/simstudioai/sim/pull/5059 |
| Vercel for GitHub | https://vercel.link/github-learn-more |
| docs | https://vercel.com/sim-studio/docs |
| https://camo.githubusercontent.com/833ba95642364322d56bfc6cc95692affdd7a5a6ca7b50fdcc44aa7e47372d3b/68747470733a2f2f76657263656c2e636f6d2f7374617469632f7374617475732f72656164792e737667 |
| Ready | https://vercel.com/sim-studio/docs/7PCMnNnRxziMPdAqJDFm1v1z8ons |
| Preview | https://docs-git-feat-appconfig-backed-feature-flag-sim-studio.vercel.app |
| Comment | https://vercel.live/open-feedback/docs-git-feat-appconfig-backed-feature-flag-sim-studio.vercel.app?via=pr-comment-feedback-link |
| https://vercel.com/vercel-agent/request-review?owner=simstudioai&repo=sim&pr=5059 |
| Please reload this page | https://github.com/simstudioai/sim/pull/5059 |
| https://github.com/apps/cursor |
| cursor | https://github.com/apps/cursor |
| Jun 15, 2026 | https://github.com/simstudioai/sim/pull/5059#issuecomment-4711013076 |
| Please reload this page | https://github.com/simstudioai/sim/pull/5059 |
| Cursor Bugbot | https://cursor.com/bugbot |
| c82faeb | https://github.com/simstudioai/sim/commit/c82faeb556388185cc4819765442c7f50d100dbc |
| here | https://www.cursor.com/dashboard/bugbot |
| Please reload this page | https://github.com/simstudioai/sim/pull/5059 |
| https://github.com/apps/vercel |
| vercel | https://github.com/apps/vercel |
| deployed | https://docs-2m69fr96r-sim-studio.vercel.app |
| Preview | https://docs-2m69fr96r-sim-studio.vercel.app |
| June 15, 2026 18:22 | https://github.com/simstudioai/sim/pull/5059#event-26772325640 |
| View deployment | https://docs-2m69fr96r-sim-studio.vercel.app |
|
| https://github.com/TheodoreSpeaks |
| fix(ci): repoint 'Validate feature flags' step to env-flags.ts after … | https://github.com/simstudioai/sim/pull/5059/commits/d0e0660a0f2e019fc9c721e4623412a6a7903a1d |
| d0e0660 | https://github.com/simstudioai/sim/pull/5059/commits/d0e0660a0f2e019fc9c721e4623412a6a7903a1d |
| https://github.com/apps/cursor |
| cursor | https://github.com/apps/cursor |
|
Jun 15, 2026
| https://github.com/simstudioai/sim/pull/5059#pullrequestreview-4502076460 |
|
View reviewed changes
| https://github.com/simstudioai/sim/pull/5059/files/d0e0660a0f2e019fc9c721e4623412a6a7903a1d |
| apps/sim/lib/core/config/feature-flags.ts | https://github.com/simstudioai/sim/pull/5059/files/d0e0660a0f2e019fc9c721e4623412a6a7903a1d#diff-3e4749df9f5e590f0e3d17cc4e1fed55b8788c93f823e02fba3409ba2ca708c2 |
| Please reload this page | https://github.com/simstudioai/sim/pull/5059 |
| https://github.com/apps/vercel |
| vercel | https://github.com/apps/vercel |
| deployed | https://docs-p273bhgxa-sim-studio.vercel.app |
| Preview | https://docs-p273bhgxa-sim-studio.vercel.app |
| June 15, 2026 23:42 | https://github.com/simstudioai/sim/pull/5059#event-26783556926 |
| View deployment | https://docs-p273bhgxa-sim-studio.vercel.app |
|
| https://github.com/TheodoreSpeaks |
| Merge remote-tracking branch 'origin/staging' into feat/appconfig-bac… | https://github.com/simstudioai/sim/pull/5059/commits/d13b2302aa0e7afc8de6e74df114705ad4579128 |
| d13b230 | https://github.com/simstudioai/sim/pull/5059/commits/d13b2302aa0e7afc8de6e74df114705ad4579128 |
| https://github.com/apps/vercel |
| vercel | https://github.com/apps/vercel |
| deployed | https://docs-185hcfnqo-sim-studio.vercel.app |
| Preview | https://docs-185hcfnqo-sim-studio.vercel.app |
| June 16, 2026 00:17 | https://github.com/simstudioai/sim/pull/5059#event-26784448449 |
| View deployment | https://docs-185hcfnqo-sim-studio.vercel.app |
|
| https://github.com/TheodoreSpeaks |
| improvement(feature-flags): drop in-code defaults; fallback resolves … | https://github.com/simstudioai/sim/pull/5059/commits/1989bf860b6c6e2939158cfbf7d69fb71bb0f770 |
| 1989bf8 | https://github.com/simstudioai/sim/pull/5059/commits/1989bf860b6c6e2939158cfbf7d69fb71bb0f770 |
| https://github.com/apps/vercel |
| vercel | https://github.com/apps/vercel |
| deployed | https://docs-qt7n7jyag-sim-studio.vercel.app |
| Preview | https://docs-qt7n7jyag-sim-studio.vercel.app |
| June 16, 2026 01:19 | https://github.com/simstudioai/sim/pull/5059#event-26785919160 |
| View deployment | https://docs-qt7n7jyag-sim-studio.vercel.app |
|
| https://github.com/TheodoreSpeaks |
| improvement(feature-flags): make flag names a closed set so every fla… | https://github.com/simstudioai/sim/pull/5059/commits/0853240860d68fc7279777cd8857373c97043599 |
| 0853240 | https://github.com/simstudioai/sim/pull/5059/commits/0853240860d68fc7279777cd8857373c97043599 |
| https://github.com/apps/vercel |
| vercel | https://github.com/apps/vercel |
| temporarily deployed | https://docs-d4nwwemax-sim-studio.vercel.app |
| June 16, 2026 01:32 | https://github.com/simstudioai/sim/pull/5059#event-26786219581 |
| https://github.com/apps/cursor |
| cursor | https://github.com/apps/cursor |
|
Jun 16, 2026
| https://github.com/simstudioai/sim/pull/5059#pullrequestreview-4502571881 |
|
View reviewed changes
| https://github.com/simstudioai/sim/pull/5059/files/0853240860d68fc7279777cd8857373c97043599 |
| cursor | https://github.com/apps/cursor |
| https://github.com/simstudioai/sim/pull/5059#pullrequestreview-4502571881 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9BTExfSU5fQ1VSU09SIiwiZGF0YSI6eyJyZWRpc0tleSI6ImJ1Z2JvdC1tdWx0aTphMTA0MmE2OC1kZDgyLTQ0MmMtYTk2ZS03ZTdhMDFjNjE4MzIiLCJlbmNyeXB0aW9uS2V5IjoiUTFBOUNZN0t4emQtZklrdGdOSFdScHJOQm9IRVYwM1lmNnNVUzB4ZU85SSIsImJyYW5jaCI6ImZlYXQvYXBwY29uZmlnLWJhY2tlZC1mZWF0dXJlLWZsYWciLCJyZXBvT3duZXIiOiJzaW1zdHVkaW9haSIsInJlcG9OYW1lIjoic2ltIn19 |
| Cursor dashboard | https://www.cursor.com/dashboard/bugbot |
| Cursor Bugbot | https://cursor.com/bugbot |
| 0853240 | https://github.com/simstudioai/sim/commit/0853240860d68fc7279777cd8857373c97043599 |
| here | https://www.cursor.com/dashboard/bugbot |
| Please reload this page | https://github.com/simstudioai/sim/pull/5059 |
| apps/sim/lib/core/config/feature-flags.ts | https://github.com/simstudioai/sim/pull/5059/files/0853240860d68fc7279777cd8857373c97043599#diff-3e4749df9f5e590f0e3d17cc4e1fed55b8788c93f823e02fba3409ba2ca708c2 |
| cursor | https://github.com/apps/cursor |
| Jun 16, 2026 | https://github.com/simstudioai/sim/pull/5059#discussion_r3417595728 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9JTl9DVVJTT1IiLCJkYXRhIjp7InJlZGlzS2V5IjoiYnVnYm90OmM0N2E5NjBkLWE5YTQtNDdkMC1iYTVmLWJiMDNjOTg2MmVhMCIsImVuY3J5cHRpb25LZXkiOiJ5SFdzelJDTWxzMWU2T1pUTGFadkdfby1kRGh3OWFPYkRGbHVtM1FlM01ZIiwiYnJhbmNoIjoiZmVhdC9hcHBjb25maWctYmFja2VkLWZlYXR1cmUtZmxhZyIsInJlcG9Pd25lciI6InNpbXN0dWRpb2FpIiwicmVwb05hbWUiOiJzaW0ifX0 |
| https://cursor.com/agents?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9JTl9XRUIiLCJkYXRhIjp7InJlZGlzS2V5IjoiYnVnYm90OmM0N2E5NjBkLWE5YTQtNDdkMC1iYTVmLWJiMDNjOTg2MmVhMCIsImVuY3J5cHRpb25LZXkiOiJ5SFdzelJDTWxzMWU2T1pUTGFadkdfby1kRGh3OWFPYkRGbHVtM1FlM01ZIiwiYnJhbmNoIjoiZmVhdC9hcHBjb25maWctYmFja2VkLWZlYXR1cmUtZmxhZyIsInJlcG9Pd25lciI6InNpbXN0dWRpb2FpIiwicmVwb05hbWUiOiJzaW0iLCJwck51bWJlciI6NTA1OSwiY29tbWl0U2hhIjoiMDg1MzI0MDg2MGQ2OGZjNzI3OTc3N2NkODg1NzM3M2M5NzA0MzU5OSIsInByb3ZpZGVyIjoiZ2l0aHViIn19 |
| Cursor Bugbot | https://cursor.com/bugbot |
| 0853240 | https://github.com/simstudioai/sim/commit/0853240860d68fc7279777cd8857373c97043599 |
| here | https://www.cursor.com/dashboard/bugbot |
| Please reload this page | https://github.com/simstudioai/sim/pull/5059 |
| TheodoreSpeaks | https://github.com/TheodoreSpeaks |
| June 15, 2026 18:35 | https://github.com/simstudioai/sim/pull/5059#commits-pushed-4b5adb2 |
|
| https://github.com/TheodoreSpeaks |
| improvement(feature-flags): single FEATURE_FLAGS registry — each entr… | https://github.com/simstudioai/sim/pull/5059/commits/4b5adb2206031b58d1a2e218931c7f2e7471b42b |
| 4b5adb2 | https://github.com/simstudioai/sim/pull/5059/commits/4b5adb2206031b58d1a2e218931c7f2e7471b42b |
|
| https://github.com/TheodoreSpeaks |
| improvement(feature-flags): fallback is the env secret key (keyof typ… | https://github.com/simstudioai/sim/pull/5059/commits/c82faeb556388185cc4819765442c7f50d100dbc |
| c82faeb | https://github.com/simstudioai/sim/pull/5059/commits/c82faeb556388185cc4819765442c7f50d100dbc |
| https://github.com/TheodoreSpeaks |
| TheodoreSpeaks | https://github.com/TheodoreSpeaks |
| Jun 16, 2026 | https://github.com/simstudioai/sim/pull/5059#issuecomment-4714065229 |
| @greptile | https://github.com/greptile |
| Please reload this page | https://github.com/simstudioai/sim/pull/5059 |
| https://github.com/apps/vercel |
| vercel | https://github.com/apps/vercel |
| deployed | https://docs-eqv9d1mwu-sim-studio.vercel.app |
| Preview | https://docs-eqv9d1mwu-sim-studio.vercel.app |
| June 16, 2026 01:43 | https://github.com/simstudioai/sim/pull/5059#event-26786502744 |
| View deployment | https://docs-eqv9d1mwu-sim-studio.vercel.app |
| https://github.com/apps/greptile-apps |
| greptile-apps | https://github.com/apps/greptile-apps |
| Jun 16, 2026 | https://github.com/simstudioai/sim/pull/5059#issuecomment-4714088466 |
| Please reload this page | https://github.com/simstudioai/sim/pull/5059 |
|
%%{init: {'theme': 'neutral'}}%%
sequenceDiagram
participant Caller
participant isFeatureEnabled
participant getFeatureFlags
participant fetchAppConfigProfile
participant evaluate
participant isPlatformAdmin
Caller->>isFeatureEnabled: "isFeatureEnabled(flag, { userId, orgId })"
isFeatureEnabled->>getFeatureFlags: getFeatureFlags()
alt isAppConfigEnabled
getFeatureFlags->>fetchAppConfigProfile: fetchAppConfigProfile(ids, parseConfig)
note over fetchAppConfigProfile: Stale-while-revalidate cache (~30s TTL)
fetchAppConfigProfile-->>getFeatureFlags: "FeatureFlagsConfig | null"
else fallback path
getFeatureFlags-->>getFeatureFlags: fallbackFlags() from env secrets
end
getFeatureFlags-->>isFeatureEnabled: "{ flags }"
isFeatureEnabled->>evaluate: evaluate(flags[flag], ctx)
note over evaluate: 1. rule.enabled?
note over evaluate: 2. userId in userIds?
note over evaluate: 3. orgId in orgIds?
alt "rule.admins && no earlier match"
evaluate->>isPlatformAdmin: isPlatformAdmin(userId) via dbReplica
isPlatformAdmin-->>evaluate: boolean
end
evaluate-->>isFeatureEnabled: boolean
isFeatureEnabled-->>Caller: boolean
Loading
| https://github.com/simstudioai/sim/pull/5059#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 Caller
participant isFeatureEnabled
participant getFeatureFlags
participant fetchAppConfigProfile
participant evaluate
participant isPlatformAdmin
Caller->>isFeatureEnabled: "isFeatureEnabled(flag, { userId, orgId })"
isFeatureEnabled->>getFeatureFlags: getFeatureFlags()
alt isAppConfigEnabled
getFeatureFlags->>fetchAppConfigProfile: fetchAppConfigProfile(ids, parseConfig)
note over fetchAppConfigProfile: Stale-while-revalidate cache (~30s TTL)
fetchAppConfigProfile-->>getFeatureFlags: "FeatureFlagsConfig | null"
else fallback path
getFeatureFlags-->>getFeatureFlags: fallbackFlags() from env secrets
end
getFeatureFlags-->>isFeatureEnabled: "{ flags }"
isFeatureEnabled->>evaluate: evaluate(flags[flag], ctx)
note over evaluate: 1. rule.enabled?
note over evaluate: 2. userId in userIds?
note over evaluate: 3. orgId in orgIds?
alt "rule.admins && no earlier match"
evaluate->>isPlatformAdmin: isPlatformAdmin(userId) via dbReplica
isPlatformAdmin-->>evaluate: boolean
end
evaluate-->>isFeatureEnabled: boolean
isFeatureEnabled-->>Caller: boolean
Loading
| https://github.com/simstudioai/sim/pull/5059#gh-dark-mode-only |
| link | https://github.com/simstudioai/sim/blob/c82faeb556388185cc4819765442c7f50d100dbc/apps/sim/lib/core/config/feature-flags.ts#L1027-L1038 |
| https://github.com/simstudioai/sim/pull/5059 |
| "improvement(feature-flags): fallback is ..." | https://github.com/simstudioai/sim/commit/c82faeb556388185cc4819765442c7f50d100dbc |
| Re-trigger Greptile | https://app.greptile.com/api/retrigger?id=37787095 |
| Please reload this page | https://github.com/simstudioai/sim/pull/5059 |
| https://github.com/TheodoreSpeaks |
| TheodoreSpeaks | https://github.com/TheodoreSpeaks |
| 3fe061e | https://github.com/simstudioai/sim/commit/3fe061e3b3d417eadc2271580a132b239bd2f588 |
| Jun 16, 2026 | https://github.com/simstudioai/sim/pull/5059#event-26786787113 |
| Please reload this page | https://github.com/simstudioai/sim/pull/5059 |
| https://github.com/TheodoreSpeaks |
| TheodoreSpeaks | https://github.com/TheodoreSpeaks |
| June 16, 2026 01:56 | https://github.com/simstudioai/sim/pull/5059#event-26786789278 |
| https://github.com/waleedlatif1 |
| waleedlatif1 | https://github.com/waleedlatif1 |
|
Jun 16, 2026
| https://github.com/simstudioai/sim/pull/5059#ref-pullrequest-4670824993 |
|
v0.7.8: security hardening, code hygiene, MSFT oauth provider, new atlassian assets and google calendar tools
#5088
| https://github.com/simstudioai/sim/pull/5088 |
| Deployed | https://docs-eqv9d1mwu-sim-studio.vercel.app |
| vercel[bot] | https://github.com/apps/vercel |
|
View deployment
| https://docs-eqv9d1mwu-sim-studio.vercel.app |
| https://github.co/hiddenchars |
| https://github.com/simstudioai/sim/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5059 |
|
| https://github.com/apps/cursor |
|
cursor[bot]
| https://github.com/apps/cursor |
|
| https://github.com/simstudioai/sim/pull/5059/files/0853240860d68fc7279777cd8857373c97043599 |
| Please reload this page | https://github.com/simstudioai/sim/pull/5059 |
| Please reload this page | https://github.com/simstudioai/sim/pull/5059 |
|
| https://github.com/TheodoreSpeaks |
|
| 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 |