René's URL Explorer Experiment


Title: fix(slack): win the trigger_id race — dispatch latency cuts + opt-in ingest loading modal by icecrasher321 · Pull Request #7055 · simstudioai/sim · GitHub

Open Graph Title: fix(slack): win the trigger_id race — dispatch latency cuts + opt-in ingest loading modal by icecrasher321 · Pull Request #7055 · simstudioai/sim

X Title: fix(slack): win the trigger_id race — dispatch latency cuts + opt-in ingest loading modal by icecrasher321 · Pull Request #7055 · simstudioai/sim

Description: Slack modal opens fail with expired_trigger_id: workflows execute after the webhook ack, and dispatch eats the 3s TTL before the first block runs (measured in prod: p50 trigger age 2.5s at logging start; 19.5% of Slack runs already expired; ingest 834ms + worker 1,032ms of serial work). Cuts the Sim-owned serial work: warm-context handoff from ingest to the inline worker (no re-fetch of workflow/webhook rows, no duplicate ban/subscription checks), cache-first deployed-state reads by deploymentVersionId, credential resolution once and off the critical path, parallelized execution-core/logging/ingest reads, plus phase-level latency metrics (preprocessMs/loadsMs/providerConfigMs/formatInputMs and a new "Webhook executor started" line). All flags/closures are inert on Trigger.dev and recovery paths — those run unchanged. Admission semantics untouched. Adds an opt-in Open loading modal to the slack_oauth trigger: ingest opens a minimal loading modal via views.open while the trigger_id is fresh (via a new prepareSyncDispatch provider hook; failures never block dispatch), and the workflow updates it through the new loading_view_id trigger output with slack_update_view (no TTL). Legacy slack_webhook trigger unchanged. Note: bun run type-check currently fails on staging in lib/consent/scripts.ts (pre-existing from #7049); every file this PR touches checks clean, and the affected test battery (2,133 tests) + check:api-validation pass. 🤖 Generated with Claude Code

Open Graph Description: Slack modal opens fail with expired_trigger_id: workflows execute after the webhook ack, and dispatch eats the 3s TTL before the first block runs (measured in prod: p50 trigger age 2.5s at logging ...

X Description: Slack modal opens fail with expired_trigger_id: workflows execute after the webhook ack, and dispatch eats the 3s TTL before the first block runs (measured in prod: p50 trigger age 2.5s at logging ...

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

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:8e0ed47b-3b2f-049b-0863-9db7b2bb585a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB414:210607:319E10:45BF18:6AFB7147
html-safe-nonce7194c24389e26d44bb2e280a1bf7d0ddb7b2c4c08ab7951e18de163bcf34a7ee
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDE0OjIxMDYwNzozMTlFMTA6NDVCRjE4OjZBRkI3MTQ3IiwidmlzaXRvcl9pZCI6IjI4NDE4ODYxMzY3ODE3MzAxMTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbc6c4754d0f3088e9b4517bd51bc49fa26dd402277404f2baa6b30984cdd171f
hovercard-subject-tagpull_request:4353494470
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/7055/files
twitter:imagehttps://avatars.githubusercontent.com/u/17950982?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/17950982?s=400&v=4
og:image:altSlack modal opens fail with expired_trigger_id: workflows execute after the webhook ack, and dispatch eats the 3s TTL before the first block runs (measured in prod: p50 trigger age 2.5s at logging ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48
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
release2e8872b770cc4d5d0cc1f2026afab747a268e2ce
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/7055/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7055%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%2F7055%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/7055/files
Reloadhttps://github.com/simstudioai/sim/pull/7055/files
Reloadhttps://github.com/simstudioai/sim/pull/7055/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests198 (198)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
icecrasher321https://github.com/icecrasher321
staginghttps://github.com/simstudioai/sim/tree/staging
slack-trigger-id-expiredhttps://github.com/simstudioai/sim/tree/slack-trigger-id-expired
Conversation 8 https://github.com/simstudioai/sim/pull/7055
Commits 10 https://github.com/simstudioai/sim/pull/7055/commits
Checks 30 https://github.com/simstudioai/sim/pull/7055/checks
Files changed https://github.com/simstudioai/sim/pull/7055/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7055/files
fix(slack): win the trigger_id race — dispatch latency cuts + opt-in ingest loading modal https://github.com/simstudioai/sim/pull/7055/files#top
Show all changes 10 commits https://github.com/simstudioai/sim/pull/7055/files
0d41b93 improvement(webhooks): decompose dispatch latency into phase timings … Aug 25, 2026 https://github.com/simstudioai/sim/pull/7055/commits/0d41b937422da0bf2ed7cb7fe413af5a99d8ef35
30440e9 improvement(webhooks): stop redoing ingest work in the same-process w… Aug 25, 2026 https://github.com/simstudioai/sim/pull/7055/commits/30440e9dc05e68adbea213cbe899936a4573b4a1
c604090 improvement(webhooks): cache-first deployed-state reads keyed by depl… Aug 25, 2026 https://github.com/simstudioai/sim/pull/7055/commits/c60409082a892932f0f2b7c0c557ab1fba893f56
a2ce60c improvement(webhooks): resolve the webhook credential once, off the c… Aug 25, 2026 https://github.com/simstudioai/sim/pull/7055/commits/a2ce60c508f1477712c2556c06763e3b9d47d74b
0b2be9e improvement(executor): parallelize the execution-core serial front Aug 25, 2026 https://github.com/simstudioai/sim/pull/7055/commits/0b2be9eb85c6f1fa9ede98efe92a764b9b60dc4c
5bb6fae improvement(logs): run the duplicate-execution probe and snapshot ups… Aug 25, 2026 https://github.com/simstudioai/sim/pull/7055/commits/5bb6fae315f3f073ad4b79df53b666a1655262d8
84a6150 improvement(webhooks): overlap the webhook path lookup with body parsing Aug 25, 2026 https://github.com/simstudioai/sim/pull/7055/commits/84a61501cc72b288ed73a0193a71fedc59f0924c
0cec8db feat(webhooks): prepareSyncDispatch provider hook on the ingest path Aug 25, 2026 https://github.com/simstudioai/sim/pull/7055/commits/0cec8db4f6ff3cca0deee234f0fd587f38816520
85a76d5 feat(slack): open an opt-in loading modal while the trigger_id is fresh Aug 25, 2026 https://github.com/simstudioai/sim/pull/7055/commits/85a76d5c91e42f60c95625f1f19a8b6e1b1d0a7e
b16c567 feat(slack): loading-modal trigger config and loading_view_id output Aug 25, 2026 https://github.com/simstudioai/sim/pull/7055/commits/b16c567319fd3cc8a2b887549c45d556a95ced9e
Clear filters https://github.com/simstudioai/sim/pull/7055/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7055/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7055/files
route.ts https://github.com/simstudioai/sim/pull/7055/files#diff-3bd4eef0ad51030b1d68ee20db814255683ff6b47007a80d8592ff70cdb2a5da
webhook-execution.test.ts https://github.com/simstudioai/sim/pull/7055/files#diff-f433f35408ec79af440433628ad09b0d3585344dcdd28099fbb68a4884b6ecb3
webhook-execution.ts https://github.com/simstudioai/sim/pull/7055/files#diff-d3c199a17069fce702da388ec4cd1b4efc793e0a5968072a181280db5aafdbb1
preprocessing.test.ts https://github.com/simstudioai/sim/pull/7055/files#diff-bf810ff832cf89c1bf98cfe2ecb746f021b88001dc8a0bd0732de89cb289089a
preprocessing.ts https://github.com/simstudioai/sim/pull/7055/files#diff-302a95657ffed9f4b7bf818f94d31f82065f79bda02a09a46da02a6a3411aa21
logger.ts https://github.com/simstudioai/sim/pull/7055/files#diff-c93eef5145bbe011ec0c231c435952a4a5d8f1826332935030595b98b5980ee6
processor.test.ts https://github.com/simstudioai/sim/pull/7055/files#diff-ba6e1a44cdb94ccfcc4f6c6c96e2f28ad8e08f49903062d74f913a57f657ab94
processor.ts https://github.com/simstudioai/sim/pull/7055/files#diff-d1f09ac3bd1aabe69708139bcf5137c047ada2dc058c916925187e924c12de4c
slack.test.ts https://github.com/simstudioai/sim/pull/7055/files#diff-725b060b5acb14d2731f217b02fcad2de16d9e75f1e8917068de9a11db66af1c
slack.ts https://github.com/simstudioai/sim/pull/7055/files#diff-f4ef74527f587fa6bd8a1f2e3beee8da1d3c0e3c49c719d900ee1404a77e6861
types.ts https://github.com/simstudioai/sim/pull/7055/files#diff-e76b638e3f0830dde71e2304e01806f7472280e67a9d38f2a7746320b1837b77
operations.ts https://github.com/simstudioai/sim/pull/7055/files#diff-62275746551c533d2f1fde5464bc8e91f8884813163e90d8a4c9e905c9ffa44f
execution-core.ts https://github.com/simstudioai/sim/pull/7055/files#diff-2a32d546272efa06e3cbe2ccce1cf4e69c74ff37fe98253bcb2742ffed5bae4b
utils.test.ts https://github.com/simstudioai/sim/pull/7055/files#diff-ce634e5b58b7b3ab6f4693640260056a2007f58e3e7efaea0bed066fc11fa365
utils.ts https://github.com/simstudioai/sim/pull/7055/files#diff-b723bb650a6d3c96289fdf891fc363d5311c841ed15ffa4aa4ef963d1fa52227
oauth.ts https://github.com/simstudioai/sim/pull/7055/files#diff-253f962593e5f3f1c39a837256f68bae4e0307536622e82f8d7f8a012a851a4c
shared.ts https://github.com/simstudioai/sim/pull/7055/files#diff-71eb0ab3b510e35cf2c376d3c9697ba1ad077da7d530afc200a084eeca242f48
apps/sim/app/api/webhooks/trigger/[path]/route.tshttps://github.com/simstudioai/sim/pull/7055/files#diff-3bd4eef0ad51030b1d68ee20db814255683ff6b47007a80d8592ff70cdb2a5da
View file https://github.com/simstudioai/sim/blob/b16c567319fd3cc8a2b887549c45d556a95ced9e/apps/sim/app/api/webhooks/trigger/%5Bpath%5D/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7055/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7055/files#diff-3bd4eef0ad51030b1d68ee20db814255683ff6b47007a80d8592ff70cdb2a5da
https://github.com/simstudioai/sim/pull/7055/files#diff-3bd4eef0ad51030b1d68ee20db814255683ff6b47007a80d8592ff70cdb2a5da
https://github.com/simstudioai/sim/pull/7055/files#diff-3bd4eef0ad51030b1d68ee20db814255683ff6b47007a80d8592ff70cdb2a5da
apps/sim/background/webhook-execution.test.tshttps://github.com/simstudioai/sim/pull/7055/files#diff-f433f35408ec79af440433628ad09b0d3585344dcdd28099fbb68a4884b6ecb3
View file https://github.com/simstudioai/sim/blob/b16c567319fd3cc8a2b887549c45d556a95ced9e/apps/sim/background/webhook-execution.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7055/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7055/files#diff-f433f35408ec79af440433628ad09b0d3585344dcdd28099fbb68a4884b6ecb3
https://github.com/simstudioai/sim/pull/7055/files#diff-f433f35408ec79af440433628ad09b0d3585344dcdd28099fbb68a4884b6ecb3
Please reload this pagehttps://github.com/simstudioai/sim/pull/7055/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7055/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.