René's URL Explorer Experiment


Title: fix(appconfig): share the polled snapshot with Trigger.dev runs by waleedlatif1 · Pull Request #9053 · simstudioai/sim · GitHub

Open Graph Title: fix(appconfig): share the polled snapshot with Trigger.dev runs by waleedlatif1 · Pull Request #9053 · simstudioai/sim

X Title: fix(appconfig): share the polled snapshot with Trigger.dev runs by waleedlatif1 · Pull Request #9053 · simstudioai/sim

Description: Summary Trigger.dev starts a fresh process for every run, so every run that reads a feature flag opened a new AppConfig session and was billed for the full configuration it received App processes now publish each validated document they poll to Redis (appconfig:snapshot:v1://, latest validatedAt wins via a Lua compare-and-set) Inside a Trigger.dev run, a cold cache adopts that snapshot when it is under 120s old (5s clock-skew tolerance) instead of opening a session; missing, stale, unreadable, or unparseable snapshots fall back to polling AppConfig exactly as before Opt-in per profile (shareWithTriggerRuns): feature-flags, block-visibility, access-control. Strict snapshots (outbound routing) never read or publish the shared copy, and Trigger.dev runs never publish App (ECS) reads are unchanged apart from one fire-and-forget EVAL per poll; flag changes reach runs within ~60s (worst case ~120s) Type of Change Bug fix Testing appconfig.test.ts: adoption, clock skew bounds, non-Trigger processes, opt-out profiles, stale snapshot, Redis failure, parse failure, publish-only-from-app, strict isolation. Each guard was reverted and its test went red appconfig.integration.ts (real Redis): app process publishes and a fresh Trigger.dev process adopts with no AppConfig call; an older publisher never overwrites a newer snapshot (verified red against a broken Lua compare) Caller tests updated for the new options argument; 71 tests across the 5 affected files pass locally. Full gate left to CI Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing (new tests pass the test-audit authoring gate) No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Trigger.dev starts a fresh process for every run, so every run that reads a feature flag opened a new AppConfig session and was billed for the full configuration it received App processes ...

X Description: Summary Trigger.dev starts a fresh process for every run, so every run that reads a feature flag opened a new AppConfig session and was billed for the full configuration it received App processes ...

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

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:810c78b1-332b-e413-92e2-e82e7661ea1b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCA72:2781FE:26149A:354AB6:6AFB5295
html-safe-nonce17c18ee48b165430846a240a2e9ccd8a73695371bb0aaf49a9781899d876f2a3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTcyOjI3ODFGRToyNjE0OUE6MzU0QUI2OjZBRkI1Mjk1IiwidmlzaXRvcl9pZCI6IjEzMDg4MDQwNzE2NDQ5NDI5OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac14f09fe2c50c900794e95d3848e10ef429b9c085f3de73f76f013ef68345d4fb
hovercard-subject-tagpull_request:4865916953
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/9053/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Trigger.dev starts a fresh process for every run, so every run that reads a feature flag opened a new AppConfig session and was billed for the full configuration it received App processes ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/9053/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9053%2Ffiles
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%2F9053%2Ffiles
Sign uphttps://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
Reloadhttps://github.com/simstudioai/sim/pull/9053/files
Reloadhttps://github.com/simstudioai/sim/pull/9053/files
Reloadhttps://github.com/simstudioai/sim/pull/9053/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/appconfig-shared-snapshothttps://github.com/simstudioai/sim/tree/fix/appconfig-shared-snapshot
Conversation 12 https://github.com/simstudioai/sim/pull/9053
Commits 2 https://github.com/simstudioai/sim/pull/9053/commits
Checks 52 https://github.com/simstudioai/sim/pull/9053/checks
Files changed https://github.com/simstudioai/sim/pull/9053/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9053/files
fix(appconfig): share the polled snapshot with Trigger.dev runs https://github.com/simstudioai/sim/pull/9053/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/9053/files
ff99c9a fix(appconfig): share the polled snapshot with Trigger.dev runs waleedlatif1 Oct 14, 2026 https://github.com/simstudioai/sim/pull/9053/commits/ff99c9a5e4700d1b456b924f097b65856401ef22
d7f9ef5 test(appconfig): guard the Redis URL, reuse flushMacrotask, await the… waleedlatif1 Oct 14, 2026 https://github.com/simstudioai/sim/pull/9053/commits/d7f9ef58fbcfa52f354e1ea06776050f88425e0c
Clear filters https://github.com/simstudioai/sim/pull/9053/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9053/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9053/files
access-control.test.ts https://github.com/simstudioai/sim/pull/9053/files#diff-cb22a559874f3851565d9f6a16e50a06989c5b2ad60e47f68d3fee68201a1bb9
access-control.ts https://github.com/simstudioai/sim/pull/9053/files#diff-a77e668edd169029a52aed1bf512bb928900b6e380bff3d0efa7bf213c2cff7d
appconfig.integration.ts https://github.com/simstudioai/sim/pull/9053/files#diff-b759721d0f99dc9ff4eee293adef718481b6b0fe205cc43b83f06529e860dd6a
appconfig.test.ts https://github.com/simstudioai/sim/pull/9053/files#diff-8ecdb5f315b18832d6e677497c68ed857d7d2151d24f8012ec77381c81f84dbc
appconfig.ts https://github.com/simstudioai/sim/pull/9053/files#diff-c5d34019f0f6ab84fba87af7c2010ac78d508c60087fa747c6f4feaf9d1658bb
block-visibility.ts https://github.com/simstudioai/sim/pull/9053/files#diff-edbe67887212f30bc3e7740cea9f8a36f6e9f9a5e8705ebb7c49df6aea65112b
feature-flags.test.ts https://github.com/simstudioai/sim/pull/9053/files#diff-22503a91c9d0f2e3a8926f304e9763f040b41e3a409901697d1a8941301ee96b
feature-flags.ts https://github.com/simstudioai/sim/pull/9053/files#diff-3e4749df9f5e590f0e3d17cc4e1fed55b8788c93f823e02fba3409ba2ca708c2
feature-flags.test.ts https://github.com/simstudioai/sim/pull/9053/files#diff-231f893e1faa0105e5c43769d031112a562162df40cf3a5484871a9d1c39852a
apps/sim/lib/auth/access-control.test.tshttps://github.com/simstudioai/sim/pull/9053/files#diff-cb22a559874f3851565d9f6a16e50a06989c5b2ad60e47f68d3fee68201a1bb9
View file https://github.com/simstudioai/sim/blob/d7f9ef58fbcfa52f354e1ea06776050f88425e0c/apps/sim/lib/auth/access-control.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9053/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9053/files#diff-cb22a559874f3851565d9f6a16e50a06989c5b2ad60e47f68d3fee68201a1bb9
https://github.com/simstudioai/sim/pull/9053/files#diff-cb22a559874f3851565d9f6a16e50a06989c5b2ad60e47f68d3fee68201a1bb9
apps/sim/lib/auth/access-control.tshttps://github.com/simstudioai/sim/pull/9053/files#diff-a77e668edd169029a52aed1bf512bb928900b6e380bff3d0efa7bf213c2cff7d
View file https://github.com/simstudioai/sim/blob/d7f9ef58fbcfa52f354e1ea06776050f88425e0c/apps/sim/lib/auth/access-control.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9053/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9053/files#diff-a77e668edd169029a52aed1bf512bb928900b6e380bff3d0efa7bf213c2cff7d
https://github.com/simstudioai/sim/pull/9053/files#diff-a77e668edd169029a52aed1bf512bb928900b6e380bff3d0efa7bf213c2cff7d
apps/sim/lib/core/config/appconfig.integration.tshttps://github.com/simstudioai/sim/pull/9053/files#diff-b759721d0f99dc9ff4eee293adef718481b6b0fe205cc43b83f06529e860dd6a
View file https://github.com/simstudioai/sim/blob/d7f9ef58fbcfa52f354e1ea06776050f88425e0c/apps/sim/lib/core/config/appconfig.integration.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9053/{{ revealButtonHref }}
apps/sim/lib/core/config/appconfig.test.tshttps://github.com/simstudioai/sim/pull/9053/files#diff-8ecdb5f315b18832d6e677497c68ed857d7d2151d24f8012ec77381c81f84dbc
View file https://github.com/simstudioai/sim/blob/d7f9ef58fbcfa52f354e1ea06776050f88425e0c/apps/sim/lib/core/config/appconfig.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9053/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9053/files#diff-8ecdb5f315b18832d6e677497c68ed857d7d2151d24f8012ec77381c81f84dbc
https://github.com/simstudioai/sim/pull/9053/files#diff-8ecdb5f315b18832d6e677497c68ed857d7d2151d24f8012ec77381c81f84dbc
https://github.com/simstudioai/sim/pull/9053/files#diff-8ecdb5f315b18832d6e677497c68ed857d7d2151d24f8012ec77381c81f84dbc
Please reload this pagehttps://github.com/simstudioai/sim/pull/9053/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9053/files
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.