René's URL Explorer Experiment


Title: fix(deployment): prevent trigger registry initialization crash by BillLeoutsakosvl346 · Pull Request #6342 · simstudioai/sim · GitHub

Open Graph Title: fix(deployment): prevent trigger registry initialization crash by BillLeoutsakosvl346 · Pull Request #6342 · simstudioai/sim

X Title: fix(deployment): prevent trigger registry initialization crash by BillLeoutsakosvl346 · Pull Request #6342 · simstudioai/sim

Description: Summary Fixes workflow deployment requests that crash while initializing the trigger registry. PR #6272 made the deploy path import the trigger barrel before the block registry. Trigger definitions reference block configs during module initialization, which allowed the trigger barrel to be re-entered before TRIGGER_REGISTRY was ready. This change explicitly initializes the block registry first and preserves the existing deployment behavior. Type of Change Bug fix New feature Breaking change Documentation Other: ___________ Testing bun run test -- lib/webhooks/deploy.test.ts triggers/webhook-url.test.ts (29 passed) bunx biome check apps/sim/lib/webhooks/deploy.ts bun run check:api-validation Clean Next.js compilation of POST /api/workflows/:id/deploy reaches authentication and returns the expected 401 without a session instead of the TRIGGER_REGISTRY 500 Reviewers should focus on the explicit registry initialization at the top of apps/sim/lib/webhooks/deploy.ts. Checklist Code follows project style guidelines Self-reviewed my changes Relevant tests are passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA) Screenshots/Videos Not applicable; this is a server-side module-initialization fix with no UI changes.

Open Graph Description: Summary Fixes workflow deployment requests that crash while initializing the trigger registry. PR #6272 made the deploy path import the trigger barrel before the block registry. Trigger definitions...

X Description: Summary Fixes workflow deployment requests that crash while initializing the trigger registry. PR #6272 made the deploy path import the trigger barrel before the block registry. Trigger definitions...

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

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:5541e171-2c42-24fd-fb82-2d393301e19c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE9E4:11E6AB:15EF37:1F3A08:6AFB4E0F
html-safe-nonce4deebaaf642abbb594a3bdf66d21c4f205bbff950b58866e61d70083cb53cefc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUU0OjExRTZBQjoxNUVGMzc6MUYzQTA4OjZBRkI0RTBGIiwidmlzaXRvcl9pZCI6IjI0OTQ1MTYzNjMwNjY1NjAwMTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace5fbe83a5cf12d2b03534511cf5ecce5227a04ccb5d46605b7d12cb047bcbbc1
hovercard-subject-tagpull_request:4223891621
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/6342/files
twitter:imagehttps://avatars.githubusercontent.com/u/157128530?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/157128530?s=400&v=4
og:image:altSummary Fixes workflow deployment requests that crash while initializing the trigger registry. PR #6272 made the deploy path import the trigger barrel before the block registry. Trigger definitions...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneacf7616d06cc051644705b379878c9bb13dc5e70ecf4ffd9b34140f8ac01d7e1
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
release26504db649b58525278f77a52b80ba5f10d5f4de
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6342/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6342%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%2F6342%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/6342/files
Reloadhttps://github.com/simstudioai/sim/pull/6342/files
Reloadhttps://github.com/simstudioai/sim/pull/6342/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/deploy-trigger-registry-cyclehttps://github.com/simstudioai/sim/tree/fix/deploy-trigger-registry-cycle
Conversation 6 https://github.com/simstudioai/sim/pull/6342
Commits 3 https://github.com/simstudioai/sim/pull/6342/commits
Checks 4 https://github.com/simstudioai/sim/pull/6342/checks
Files changed https://github.com/simstudioai/sim/pull/6342/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6342/files
fix(deployment): prevent trigger registry initialization crash https://github.com/simstudioai/sim/pull/6342/files#top
Show all changes 3 commits https://github.com/simstudioai/sim/pull/6342/files
7b89646 fix(deployment): initialize block registry before triggers Aug 6, 2026 https://github.com/simstudioai/sim/pull/6342/commits/7b89646736cf4bd9619495d473385a91e14487a9
20b04cb fix(triggers): break the triggers <-> blocks initialization cycle waleedlatif1 Aug 6, 2026 https://github.com/simstudioai/sim/pull/6342/commits/20b04cbc51afe6ffd172cf380b104759e9f1a0b3
c9aa3ec Merge remote-tracking branch 'origin/staging' into fix/deploy-trigger… waleedlatif1 Aug 6, 2026 https://github.com/simstudioai/sim/pull/6342/commits/c9aa3ec69dc3591016c60605269cec1b3cac143d
Clear filters https://github.com/simstudioai/sim/pull/6342/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6342/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6342/files
test-build.yml https://github.com/simstudioai/sim/pull/6342/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
mock-payload.ts https://github.com/simstudioai/sim/pull/6342/files#diff-0bd06319195c7a194494b09e92f869a5a3de2aefcf792d8d3756cb7a7939c43a
trigger-utils.ts https://github.com/simstudioai/sim/pull/6342/files#diff-7134e1f6bde8e7d1d55c3a205fcaf7ee215641c95b46938d62a6202111091403
subblocks.ts https://github.com/simstudioai/sim/pull/6342/files#diff-b41d01a7b1e470729c62d553be1ac3c02ac4faddce53c68eaba59cb1dbf00e71
editor-state.ts https://github.com/simstudioai/sim/pull/6342/files#diff-fb818a004449700238f7643a71baa2c39a4f1628d0b052961dd5d03d350ec98a
poller.ts https://github.com/simstudioai/sim/pull/6342/files#diff-5419df2cdaf9263e22389093898bed49e63b8506267cd34b57bd879acf0397d1
poller.ts https://github.com/simstudioai/sim/pull/6342/files#diff-c5ab9ab826d835d0b9146dffd0814a06e405176208ddfc5471308c55c5982894
poller.ts https://github.com/simstudioai/sim/pull/6342/files#diff-517987c4452a865529bce0c454631fee009b4901ed70d4c5607c74c621e1ee03
index.ts https://github.com/simstudioai/sim/pull/6342/files#diff-88b6cef5c7dfc986a6a41ad1590181bf795e6c30c2c12d5362c11793729d6d16
poller.ts https://github.com/simstudioai/sim/pull/6342/files#diff-8954a4c6926a8e7acbe35e95e9155ab80caf001c7f461d98c00a9ae7f584b5eb
workspace-event.ts https://github.com/simstudioai/sim/pull/6342/files#diff-8cd52025ef54f7cd0bfd97da57e443e3a44c79e8ec98c0fb9f3fef08228e6c01
poller.ts https://github.com/simstudioai/sim/pull/6342/files#diff-5e777824acb4eac3a084b332721470e2665cbf18df97e6ae141571e7c1f0d186
collection_item_changed.ts https://github.com/simstudioai/sim/pull/6342/files#diff-7132bb98ffdb0528ba83c2d80643856282473fb5c265daf211c8888e0db7ff5e
collection_item_created.ts https://github.com/simstudioai/sim/pull/6342/files#diff-96a006aa2bcb373f17f990d75c650552b7f9584181c68adaf85c58ee8e1562b4
collection_item_deleted.ts https://github.com/simstudioai/sim/pull/6342/files#diff-b229ccc4a8fe9354cbdf2100ac686e8314d3aa8f521e5947f6d4af04ca303202
form_submission.ts https://github.com/simstudioai/sim/pull/6342/files#diff-8f4dbef0affd172a5ef8fd8e897072b24065a30500f4aa4c378832d8754c5c63
package.json https://github.com/simstudioai/sim/pull/6342/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
check-trigger-block-cycle.ts https://github.com/simstudioai/sim/pull/6342/files#diff-98592818eb284c31176190d20b27ce6899bdb7dd1de4467bff2632949749ecd2
.github/workflows/test-build.ymlhttps://github.com/simstudioai/sim/pull/6342/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
View file https://github.com/simstudioai/sim/blob/c9aa3ec69dc3591016c60605269cec1b3cac143d/.github/workflows/test-build.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6342/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6342/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
https://github.com/simstudioai/sim/pull/6342/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
apps/sim/lib/workflows/triggers/mock-payload.tshttps://github.com/simstudioai/sim/pull/6342/files#diff-0bd06319195c7a194494b09e92f869a5a3de2aefcf792d8d3756cb7a7939c43a
View file https://github.com/simstudioai/sim/blob/c9aa3ec69dc3591016c60605269cec1b3cac143d/apps/sim/lib/workflows/triggers/mock-payload.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6342/{{ revealButtonHref }}
apps/sim/lib/workflows/triggers/trigger-utils.tshttps://github.com/simstudioai/sim/pull/6342/files#diff-7134e1f6bde8e7d1d55c3a205fcaf7ee215641c95b46938d62a6202111091403
View file https://github.com/simstudioai/sim/blob/c9aa3ec69dc3591016c60605269cec1b3cac143d/apps/sim/lib/workflows/triggers/trigger-utils.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6342/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6342/files#diff-7134e1f6bde8e7d1d55c3a205fcaf7ee215641c95b46938d62a6202111091403
https://github.com/simstudioai/sim/pull/6342/files#diff-7134e1f6bde8e7d1d55c3a205fcaf7ee215641c95b46938d62a6202111091403
apps/sim/triggers/clickup/subblocks.tshttps://github.com/simstudioai/sim/pull/6342/files#diff-b41d01a7b1e470729c62d553be1ac3c02ac4faddce53c68eaba59cb1dbf00e71
View file https://github.com/simstudioai/sim/blob/c9aa3ec69dc3591016c60605269cec1b3cac143d/apps/sim/triggers/clickup/subblocks.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6342/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6342/files#diff-b41d01a7b1e470729c62d553be1ac3c02ac4faddce53c68eaba59cb1dbf00e71
https://github.com/simstudioai/sim/pull/6342/files#diff-b41d01a7b1e470729c62d553be1ac3c02ac4faddce53c68eaba59cb1dbf00e71
apps/sim/triggers/editor-state.tshttps://github.com/simstudioai/sim/pull/6342/files#diff-fb818a004449700238f7643a71baa2c39a4f1628d0b052961dd5d03d350ec98a
View file https://github.com/simstudioai/sim/blob/c9aa3ec69dc3591016c60605269cec1b3cac143d/apps/sim/triggers/editor-state.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6342/{{ revealButtonHref }}
apps/sim/triggers/gmail/poller.tshttps://github.com/simstudioai/sim/pull/6342/files#diff-5419df2cdaf9263e22389093898bed49e63b8506267cd34b57bd879acf0397d1
View file https://github.com/simstudioai/sim/blob/c9aa3ec69dc3591016c60605269cec1b3cac143d/apps/sim/triggers/gmail/poller.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6342/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6342/files#diff-5419df2cdaf9263e22389093898bed49e63b8506267cd34b57bd879acf0397d1
https://github.com/simstudioai/sim/pull/6342/files#diff-5419df2cdaf9263e22389093898bed49e63b8506267cd34b57bd879acf0397d1
https://github.com/simstudioai/sim/pull/6342/files#diff-5419df2cdaf9263e22389093898bed49e63b8506267cd34b57bd879acf0397d1
https://github.com/simstudioai/sim/pull/6342/files#diff-5419df2cdaf9263e22389093898bed49e63b8506267cd34b57bd879acf0397d1
Please reload this pagehttps://github.com/simstudioai/sim/pull/6342/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6342/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.