René's URL Explorer Experiment


Title: feat(notifications): email on schedule auto-disable and 100% usage limit by TheodoreSpeaks · Pull Request #6038 · simstudioai/sim · GitHub

Open Graph Title: feat(notifications): email on schedule auto-disable and 100% usage limit by TheodoreSpeaks · Pull Request #6038 · simstudioai/sim

X Title: feat(notifications): email on schedule auto-disable and 100% usage limit by TheodoreSpeaks · Pull Request #6038 · simstudioai/sim

Description: Summary Email the workflow creator and workspace admins when Sim auto-disables a schedule — covers all nine disable paths, including the single-strike 401/403/404 ones that bypass the failure counter entirely Fix the 100%-credits email skipping paid and org accounts: it was gated on isFreeUser plus scope === 'user', so a Pro user or an entire Team org got blocked at admission with no notice Paid/org accounts get a new "raise your limit" email — upgrading to Pro isn't their remedy; free personal accounts keep the existing upgrade-framed one Add !crosses100 to the paid 80% branch so one execution crossing both thresholds sends "reached" alone, not "nearing" and "reached" together Notes applyScheduleUpdate now returns { updated, status } and takes a disableReason. Passing a reason also adds a status <> 'disabled' guard — Postgres RETURNING yields the new row, so status === 'disabled' alone means "is disabled", not "just became disabled". The stale-recovery sweep keeps its write inside the transaction and flushes notifications after commit, capped at 25 per tick. One email per recipient, never a to: array — prepare.ts only checks to[0] for unsubscribe. The 100% path still uses crossing detection, so it inherits the existing weaknesses (a failed send is lost; concurrent completions can double-send). Moving all four credit emails onto limit-notifications.ts's race-free claim is a follow-up. Type of Change New feature (schedule notification) + bug fix (credits gating) Testing 405 tests passing across the touched suites; new coverage for recipient resolution, the disable edge, the org fan-out, and both templates rendered for real bun run lint, bun run type-check, check:api-validation:strict and the full audit suite pass No migrations in this change Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing 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 Email the workflow creator and workspace admins when Sim auto-disables a schedule — covers all nine disable paths, including the single-strike 401/403/404 ones that bypass the failure coun...

X Description: Summary Email the workflow creator and workspace admins when Sim auto-disables a schedule — covers all nine disable paths, including the single-strike 401/403/404 ones that bypass the failure coun...

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

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:03e4fbba-376f-70e2-55ab-ea7602be2b10
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9956:2B6E40:20D643:2E903D:6AFB6EFD
html-safe-nonce773bedb951b66742bf0ce9d634d5ee1436ea084169dfab11655c4e9703179426
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTU2OjJCNkU0MDoyMEQ2NDM6MkU5MDNEOjZBRkI2RUZEIiwidmlzaXRvcl9pZCI6IjQ2NjY0MzgyMTE3NzIwNTExOTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac06dc837c6571dcee151ac46d6a97fb5939307a61f02a751a51f8866529a1cf74
hovercard-subject-tagpull_request:4156311881
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/6038/files
twitter:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
og:image:altSummary Email the workflow creator and workspace admins when Sim auto-disables a schedule — covers all nine disable paths, including the single-strike 401/403/404 ones that bypass the failure coun...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700
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
release88808b1fae5ab8a526a73e7ce5542a10eb9d6971
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6038/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6038%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%2F6038%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/6038/files
Reloadhttps://github.com/simstudioai/sim/pull/6038/files
Reloadhttps://github.com/simstudioai/sim/pull/6038/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
TheodoreSpeakshttps://github.com/TheodoreSpeaks
staginghttps://github.com/simstudioai/sim/tree/staging
feat/email-notifyhttps://github.com/simstudioai/sim/tree/feat/email-notify
Conversation 11 https://github.com/simstudioai/sim/pull/6038
Commits 2 https://github.com/simstudioai/sim/pull/6038/commits
Checks 27 https://github.com/simstudioai/sim/pull/6038/checks
Files changed https://github.com/simstudioai/sim/pull/6038/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6038/files
feat(notifications): email on schedule auto-disable and 100% usage limit https://github.com/simstudioai/sim/pull/6038/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/6038/files
b9bc7be feat(notifications): email on schedule auto-disable and 100% usage limit TheodoreSpeaks Jul 29, 2026 https://github.com/simstudioai/sim/pull/6038/commits/b9bc7be01d13ad354e741b9ecd47ab997795b5a4
76e6e4c fix(notifications): keep partial recipients when one lookup fails TheodoreSpeaks Jul 29, 2026 https://github.com/simstudioai/sim/pull/6038/commits/76e6e4cdfc4af34056babd9e9561e514f3bc87fd
Clear filters https://github.com/simstudioai/sim/pull/6038/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6038/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6038/files
route.ts https://github.com/simstudioai/sim/pull/6038/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
route.test.ts https://github.com/simstudioai/sim/pull/6038/files#diff-2f4edcac9d7741c9e3adb7e7bb12258a13040fae999bf1b3e519026cfdd03514
route.ts https://github.com/simstudioai/sim/pull/6038/files#diff-75b7b7b6071d3cb280eef53fa02da1effe2f37b18f77d5179d0706adeacf40ba
schedule-execution.test.ts https://github.com/simstudioai/sim/pull/6038/files#diff-715eacd64aec49c4af12c422086bcc391773c56e0030c81e5a94dbb0ae235e89
schedule-execution.ts https://github.com/simstudioai/sim/pull/6038/files#diff-c9c5a894650376fd9b109f150455a416252960499a892b1371b297af299db347
index.ts https://github.com/simstudioai/sim/pull/6038/files#diff-c6a2e7d972b7b3d6c1d654003966f74b966689fb99ac78b6fc0d151aa7c4d4b1
usage-limit-reached-email.tsx https://github.com/simstudioai/sim/pull/6038/files#diff-e6ec5686212a23bab511fbe5a8f2ec14d853e21754e8af1c4f593a419c5168ce
index.ts https://github.com/simstudioai/sim/pull/6038/files#diff-0cf73eb1cfa613b961805711854fdcb2c7de7237cf256dd88cf28e865b0efe75
index.ts https://github.com/simstudioai/sim/pull/6038/files#diff-9812fc5598cb24022f5a05bfdb5fc0a7b0288e9ecf38c9a333b69e929748482f
schedule-disabled-email.tsx https://github.com/simstudioai/sim/pull/6038/files#diff-484de145b851049c10ec135f214aa99db956af7808b16a130e6a5b6d86f7b0e2
render-notifications.test.ts https://github.com/simstudioai/sim/pull/6038/files#diff-70fecb8917e019b8eb7de2712670de1ecfc67caf8386e4a26789598fb6cf7583
render.ts https://github.com/simstudioai/sim/pull/6038/files#diff-90a6a1f070ec5dbe64c877e256e5d1028f0edd026b9021ab94a8f4cab0d5fbc7
subjects.ts https://github.com/simstudioai/sim/pull/6038/files#diff-4680bf51600327b7fcff156e81c10db04d37b229080efada7a4696e111537df2
usage.test.ts https://github.com/simstudioai/sim/pull/6038/files#diff-76cbcb288fc18e02a54367b5d926740e68df335b2b118c1d92cb407704fba1fd
usage.ts https://github.com/simstudioai/sim/pull/6038/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
disable-notifications.test.ts https://github.com/simstudioai/sim/pull/6038/files#diff-b9a25d0770bbe22be0171bc9216b98593be725fe95b33f860ee3709ca95f6812
disable-notifications.ts https://github.com/simstudioai/sim/pull/6038/files#diff-79f67aae3a7433ba1225de05835e31ef86d30ea6f25dc64c1afb596c7b1a352a
disable-reasons.ts https://github.com/simstudioai/sim/pull/6038/files#diff-74f43113496ce720927095ae012944067d5530e8aff2afbba0d85e17f4c00f51
apps/sim/app/api/emails/preview/route.tshttps://github.com/simstudioai/sim/pull/6038/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
View file https://github.com/simstudioai/sim/blob/76e6e4cdfc4af34056babd9e9561e514f3bc87fd/apps/sim/app/api/emails/preview/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6038/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6038/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
https://github.com/simstudioai/sim/pull/6038/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
https://github.com/simstudioai/sim/pull/6038/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
https://github.com/simstudioai/sim/pull/6038/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
https://github.com/simstudioai/sim/pull/6038/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
https://github.com/simstudioai/sim/pull/6038/files#diff-e9e5c07cc9b83e1af628702eed9ae69feec158df53cdbfdbea94939284159958
apps/sim/app/api/schedules/execute/route.test.tshttps://github.com/simstudioai/sim/pull/6038/files#diff-2f4edcac9d7741c9e3adb7e7bb12258a13040fae999bf1b3e519026cfdd03514
View file https://github.com/simstudioai/sim/blob/76e6e4cdfc4af34056babd9e9561e514f3bc87fd/apps/sim/app/api/schedules/execute/route.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6038/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6038/files#diff-2f4edcac9d7741c9e3adb7e7bb12258a13040fae999bf1b3e519026cfdd03514
https://github.com/simstudioai/sim/pull/6038/files#diff-2f4edcac9d7741c9e3adb7e7bb12258a13040fae999bf1b3e519026cfdd03514
https://github.com/simstudioai/sim/pull/6038/files#diff-2f4edcac9d7741c9e3adb7e7bb12258a13040fae999bf1b3e519026cfdd03514
https://github.com/simstudioai/sim/pull/6038/files#diff-2f4edcac9d7741c9e3adb7e7bb12258a13040fae999bf1b3e519026cfdd03514
https://github.com/simstudioai/sim/pull/6038/files#diff-2f4edcac9d7741c9e3adb7e7bb12258a13040fae999bf1b3e519026cfdd03514
https://github.com/simstudioai/sim/pull/6038/files#diff-2f4edcac9d7741c9e3adb7e7bb12258a13040fae999bf1b3e519026cfdd03514
https://github.com/simstudioai/sim/pull/6038/files#diff-2f4edcac9d7741c9e3adb7e7bb12258a13040fae999bf1b3e519026cfdd03514
https://github.com/simstudioai/sim/pull/6038/files#diff-2f4edcac9d7741c9e3adb7e7bb12258a13040fae999bf1b3e519026cfdd03514
https://github.com/simstudioai/sim/pull/6038/files#diff-2f4edcac9d7741c9e3adb7e7bb12258a13040fae999bf1b3e519026cfdd03514
apps/sim/app/api/schedules/execute/route.tshttps://github.com/simstudioai/sim/pull/6038/files#diff-75b7b7b6071d3cb280eef53fa02da1effe2f37b18f77d5179d0706adeacf40ba
View file https://github.com/simstudioai/sim/blob/76e6e4cdfc4af34056babd9e9561e514f3bc87fd/apps/sim/app/api/schedules/execute/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6038/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6038/files#diff-75b7b7b6071d3cb280eef53fa02da1effe2f37b18f77d5179d0706adeacf40ba
https://github.com/simstudioai/sim/pull/6038/files#diff-75b7b7b6071d3cb280eef53fa02da1effe2f37b18f77d5179d0706adeacf40ba
https://github.com/simstudioai/sim/pull/6038/files#diff-75b7b7b6071d3cb280eef53fa02da1effe2f37b18f77d5179d0706adeacf40ba
https://github.com/simstudioai/sim/pull/6038/files#diff-75b7b7b6071d3cb280eef53fa02da1effe2f37b18f77d5179d0706adeacf40ba
https://github.com/simstudioai/sim/pull/6038/files#diff-75b7b7b6071d3cb280eef53fa02da1effe2f37b18f77d5179d0706adeacf40ba
https://github.com/simstudioai/sim/pull/6038/files#diff-75b7b7b6071d3cb280eef53fa02da1effe2f37b18f77d5179d0706adeacf40ba
https://github.com/simstudioai/sim/pull/6038/files#diff-75b7b7b6071d3cb280eef53fa02da1effe2f37b18f77d5179d0706adeacf40ba
https://github.com/simstudioai/sim/pull/6038/files#diff-75b7b7b6071d3cb280eef53fa02da1effe2f37b18f77d5179d0706adeacf40ba
https://github.com/simstudioai/sim/pull/6038/files#diff-75b7b7b6071d3cb280eef53fa02da1effe2f37b18f77d5179d0706adeacf40ba
https://github.com/simstudioai/sim/pull/6038/files#diff-75b7b7b6071d3cb280eef53fa02da1effe2f37b18f77d5179d0706adeacf40ba
https://github.com/simstudioai/sim/pull/6038/files#diff-75b7b7b6071d3cb280eef53fa02da1effe2f37b18f77d5179d0706adeacf40ba
Please reload this pagehttps://github.com/simstudioai/sim/pull/6038/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6038/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.