René's URL Explorer Experiment


Title: fix(billing): converge Stripe subscription syncs and stop webhook echoes overwriting unsynced changes by waleedlatif1 · Pull Request #8764 · simstudioai/sim · GitHub

Open Graph Title: fix(billing): converge Stripe subscription syncs and stop webhook echoes overwriting unsynced changes by waleedlatif1 · Pull Request #8764 · simstudioai/sim

X Title: fix(billing): converge Stripe subscription syncs and stop webhook echoes overwriting unsynced changes by waleedlatif1 · Pull Request #8764 · simstudioai/sim

Description: Sim is the collaborative workspace to build, deploy, and monitor AI agents and workflows. Used by 100,000+ builders. - fix(billing): converge Stripe subscription syncs and stop webhook echoes overwriting unsynced changes by waleedlatif1 · Pull Request #8764 · simstudioai/sim

Open Graph Description: Summary Sim syncs cancel_at_period_end, Team seats and the customer contact from the DB to Stripe through outbox events, while the Better Auth Stripe plugin copies cancel_at_period_end/seats from e...

X Description: Summary Sim syncs cancel_at_period_end, Team seats and the customer contact from the DB to Stripe through outbox events, while the Better Auth Stripe plugin copies cancel_at_period_end/seats from e...

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

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/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:08cfe538-ac25-55b5-ca22-d79fb250ce15
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC96C:9CA74:BF7571:106D162:6AFB573F
html-safe-nonceff918727522e047c6c27ce6f5d4111e982609e5a429a5f4c5d90aac7a110b2e4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTZDOjlDQTc0OkJGNzU3MToxMDZEMTYyOjZBRkI1NzNGIiwidmlzaXRvcl9pZCI6IjEyMTg3NTI2OTQ5NDA1NTUwNzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac094d5d7c6b3eee69f6dc9a20b4c2c484fd28ca57e0f9ea46965a36a8133ac006
hovercard-subject-tagpull_request:4778614742
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/8764/commits
twitter:imagehttps://opengraph.githubassets.com/8480c708e69cfdcfdc492da31024a676b790fad97a2c13bf5a120568ba40c336/simstudioai/sim/pull/8764
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8480c708e69cfdcfdc492da31024a676b790fad97a2c13bf5a120568ba40c336/simstudioai/sim/pull/8764
og:image:altSummary Sim syncs cancel_at_period_end, Team seats and the customer contact from the DB to Stripe through outbox events, while the Better Auth Stripe plugin copies cancel_at_period_end/seats from e...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewaleedlatif1
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/8764/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8764%2Fcommits
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%2F8764%2Fcommits
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%2Fcommits&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/8764/commits
Reloadhttps://github.com/simstudioai/sim/pull/8764/commits
Reloadhttps://github.com/simstudioai/sim/pull/8764/commits
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
https://github.com/simstudioai/sim
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/stripe-sync-convergencehttps://github.com/simstudioai/sim/tree/fix/stripe-sync-convergence
Conversationhttps://github.com/simstudioai/sim/pull/8764
Commits14 (14)https://github.com/simstudioai/sim/pull/8764/commits
Checkshttps://github.com/simstudioai/sim/pull/8764/checks
Files changedhttps://github.com/simstudioai/sim/pull/8764/files
fix(billing): converge Stripe subscription syncs and stop webhook echoes overwriting unsynced changeshttps://github.com/simstudioai/sim/pull/8764/commits#top
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/stripe-sync-convergencehttps://github.com/simstudioai/sim/tree/fix/stripe-sync-convergence
fix(billing): converge Stripe cancel/contact syncs and guard webhook echoes over unsynced DB changeshttps://github.com/simstudioai/sim/pull/8764/commits/ca54eeee0e693bc08cc5f290114474cfb1cc41f0
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
ca54eeehttps://github.com/simstudioai/sim/pull/8764/commits/ca54eeee0e693bc08cc5f290114474cfb1cc41f0
https://github.com/simstudioai/sim/tree/ca54eeee0e693bc08cc5f290114474cfb1cc41f0
fix(billing): record each committed sync value on every in-flight event so no stale intent can resurfacehttps://github.com/simstudioai/sim/pull/8764/commits/db9069f74de342c380e971562f4a46eaf7b66db0
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
db9069fhttps://github.com/simstudioai/sim/pull/8764/commits/db9069f74de342c380e971562f4a46eaf7b66db0
https://github.com/simstudioai/sim/tree/db9069f74de342c380e971562f4a46eaf7b66db0
fix(billing): close remaining stale-intent paths (enterprise retry, legacy echoes, customer restore)https://github.com/simstudioai/sim/pull/8764/commits/ee87f9750edabe3aee64f1bf065ceb344a07a329
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
ee87f97https://github.com/simstudioai/sim/pull/8764/commits/ee87f9750edabe3aee64f1bf065ceb344a07a329
https://github.com/simstudioai/sim/tree/ee87f9750edabe3aee64f1bf065ceb344a07a329
fix(billing): record Team activation's cleared cancellation under the row lock; drop the settled-event scanhttps://github.com/simstudioai/sim/pull/8764/commits/3873afddcf70e869fdad4f04aab35698c34cc30c
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
3873afdhttps://github.com/simstudioai/sim/pull/8764/commits/3873afddcf70e869fdad4f04aab35698c34cc30c
https://github.com/simstudioai/sim/tree/3873afddcf70e869fdad4f04aab35698c34cc30c
fix(billing): lock the subscription before the outbox row in every sync retry pathhttps://github.com/simstudioai/sim/pull/8764/commits/c53a94f6b5422f92c651eaa3404c38bf94d4d69d
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
c53a94fhttps://github.com/simstudioai/sim/pull/8764/commits/c53a94f6b5422f92c651eaa3404c38bf94d4d69d
https://github.com/simstudioai/sim/tree/c53a94f6b5422f92c651eaa3404c38bf94d4d69d
fix(billing): push each sync's recorded value and reject Stripe reads older than a newer Sim commithttps://github.com/simstudioai/sim/pull/8764/commits/822dc1b94ee4f52c4213070de095c008a18e0a1c
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
822dc1bhttps://github.com/simstudioai/sim/pull/8764/commits/822dc1b94ee4f52c4213070de095c008a18e0a1c
https://github.com/simstudioai/sim/tree/822dc1b94ee4f52c4213070de095c008a18e0a1c
fix(billing): order Stripe-accepted reconcile values by when Stripe was readhttps://github.com/simstudioai/sim/pull/8764/commits/c79bc166f8fe055e40c13b27fa06032bf1a39162
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
c79bc16https://github.com/simstudioai/sim/pull/8764/commits/c79bc166f8fe055e40c13b27fa06032bf1a39162
https://github.com/simstudioai/sim/tree/c79bc166f8fe055e40c13b27fa06032bf1a39162
fix(billing): recommit the in-flight value, include the plan in seat convergence, bound the reconcile's outbox readshttps://github.com/simstudioai/sim/pull/8764/commits/62a94f138b0282bd027f0e1127032411568c040b
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
62a94f1https://github.com/simstudioai/sim/pull/8764/commits/62a94f138b0282bd027f0e1127032411568c040b
https://github.com/simstudioai/sim/tree/62a94f138b0282bd027f0e1127032411568c040b
fix(billing): stamp every sync a later Stripe read confirms; ignore a moved cancel_athttps://github.com/simstudioai/sim/pull/8764/commits/681e2c5dfe8952342fc24fb0441f09dfd241832d
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
681e2c5https://github.com/simstudioai/sim/pull/8764/commits/681e2c5dfe8952342fc24fb0441f09dfd241832d
https://github.com/simstudioai/sim/tree/681e2c5dfe8952342fc24fb0441f09dfd241832d
fix(billing): a fresh idempotency key per seat write so a returning value is applied, not replayedhttps://github.com/simstudioai/sim/pull/8764/commits/dc34ffa24338c7789a12c82338e41e97b6f4ac31
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
dc34ffahttps://github.com/simstudioai/sim/pull/8764/commits/dc34ffa24338c7789a12c82338e41e97b6f4ac31
https://github.com/simstudioai/sim/tree/dc34ffa24338c7789a12c82338e41e97b6f4ac31
fix(billing): compare membership-driven seat and cancel changes against the committed value, not a possibly-stale rowhttps://github.com/simstudioai/sim/pull/8764/commits/fa5e995bf3760cd264601c0755c3a2fba9a094d2
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
fa5e995https://github.com/simstudioai/sim/pull/8764/commits/fa5e995bf3760cd264601c0755c3a2fba9a094d2
https://github.com/simstudioai/sim/tree/fa5e995bf3760cd264601c0755c3a2fba9a094d2
fix(billing): a membership writer skips only when both the row and the committed value already matchhttps://github.com/simstudioai/sim/pull/8764/commits/4f1c786d4506102055ffa9a7e33e2d26aa48b1fa
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
4f1c786https://github.com/simstudioai/sim/pull/8764/commits/4f1c786d4506102055ffa9a7e33e2d26aa48b1fa
https://github.com/simstudioai/sim/tree/4f1c786d4506102055ffa9a7e33e2d26aa48b1fa
fix(billing): a seat-row repair records no seat-change audit; deterministic latest-sync test helperhttps://github.com/simstudioai/sim/pull/8764/commits/c9db5e84a69858bef7091292b242111dca4764cf
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
c9db5e8https://github.com/simstudioai/sim/pull/8764/commits/c9db5e84a69858bef7091292b242111dca4764cf
https://github.com/simstudioai/sim/tree/c9db5e84a69858bef7091292b242111dca4764cf
test(billing): latest-sync helper fails loudly on an enqueue-time tiehttps://github.com/simstudioai/sim/pull/8764/commits/9cccfb443111a857e6eaf41b401e3b12815c2f0c
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
9cccfb4https://github.com/simstudioai/sim/pull/8764/commits/9cccfb443111a857e6eaf41b401e3b12815c2f0c
https://github.com/simstudioai/sim/tree/9cccfb443111a857e6eaf41b401e3b12815c2f0c
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.