René's URL Explorer Experiment


Title: fix(billing): scope subscription limit syncs to the exact payer by icecrasher321 · Pull Request #7695 · simstudioai/sim · GitHub

Open Graph Title: fix(billing): scope subscription limit syncs to the exact payer by icecrasher321 · Pull Request #7695 · simstudioai/sim

X Title: fix(billing): scope subscription limit syncs to the exact payer by icecrasher321 · Pull Request #7695 · simstudioai/sim

Description: Summary Resolve a subscription's billing pool from its exact reference. An organization owner's personal subscription must not update the organization's pool or other members' limits. Keep personal limit syncs independent of organization membership and remove member fan-out from organization subscription syncs. Preserve paid personal custom caps and existing organization prepaid headroom. Reconcile subscription updates through Stripe's onEvent hook so lookup or limit-sync failures fail the webhook and can be retried. Remove a timing-dependent search setup test that asserted a URL change before its asynchronous flush completed. Type of Change Bug fix Testing Billing, membership, search setup, and provider management suites: 1,012 tests passed; 8 PostgreSQL tests skipped without their dedicated test database. Lint, app type check, all 46 audits (including strict API validation), block registry, and docs manifest checks passed. Regression coverage includes personal subscribers with owner/admin/member roles, separate personal and organization Enterprise subscriptions, and failed subscription lookups. Signed webhook tests use the installed Stripe plugin to verify failed reconciliation returns an error and redelivery succeeds. 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 Resolve a subscription's billing pool from its exact reference. An organization owner's personal subscription must not update the organization's pool or other members' limi...

X Description: Summary Resolve a subscription's billing pool from its exact reference. An organization owner's personal subscription must not update the organization's pool or other membe...

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

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:e1ffb936-bea4-300e-eb77-8b850a4aa55f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idADFE:3454BD:557880:7A083D:6AFB4171
html-safe-nonce89be15bc07f9c863cce386cc8c9e6b54aa91941dadbc9add08a2351aea96bd34
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREZFOjM0NTRCRDo1NTc4ODA6N0EwODNEOjZBRkI0MTcxIiwidmlzaXRvcl9pZCI6Ijg4MTQ2NDAyNjkwMzk5NzY4MTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb838a127bbe0765cad084164f54305f97944e4943ba32b28fd898ae766ff3058
hovercard-subject-tagpull_request:4490221977
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/7695/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:altSummary Resolve a subscription's billing pool from its exact reference. An organization owner's personal subscription must not update the organization's pool or other members' limi...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned849b928f455c800985398e7f1b659425adb312a5fa14fba5d9a14e62e9fe5dd
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
releasea6c2f87cbcb6414452377b4967858ed6a66f1109
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/7695/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7695%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%2F7695%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/7695/files
Reloadhttps://github.com/simstudioai/sim/pull/7695/files
Reloadhttps://github.com/simstudioai/sim/pull/7695/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests200 (200)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
codex/fix-subscription-billing-scopehttps://github.com/simstudioai/sim/tree/codex/fix-subscription-billing-scope
Conversation 16 https://github.com/simstudioai/sim/pull/7695
Commits 4 https://github.com/simstudioai/sim/pull/7695/commits
Checks 34 https://github.com/simstudioai/sim/pull/7695/checks
Files changed https://github.com/simstudioai/sim/pull/7695/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7695/files
fix(billing): scope subscription limit syncs to the exact payer https://github.com/simstudioai/sim/pull/7695/files#top
Show all changes 4 commits https://github.com/simstudioai/sim/pull/7695/files
c293af2 fix(billing): scope subscription limit syncs to the exact payer Sep 9, 2026 https://github.com/simstudioai/sim/pull/7695/commits/c293af2dce6a07cfd589630079c91adba3ca846f
dd2b3f1 fix(billing): retry subscription limit reconciliation through webhook… Sep 9, 2026 https://github.com/simstudioai/sim/pull/7695/commits/dd2b3f1f977c43b4bcaba5b8d5d258d612e84fd4
52a2b3d chore(tests): remove timing-dependent search setup case Sep 9, 2026 https://github.com/simstudioai/sim/pull/7695/commits/52a2b3d9f89749cf62a16b7728443a83c4e66486
926e119 chore(billing): merge staging and preserve test removal Sep 9, 2026 https://github.com/simstudioai/sim/pull/7695/commits/926e119f8a85d3c3d0393e522b2f721e6fe2c3a0
Clear filters https://github.com/simstudioai/sim/pull/7695/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7695/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7695/files
search-source-setup.test.tsx https://github.com/simstudioai/sim/pull/7695/files#diff-c7caf9756bce9379b2344d4bb53ca7ff25a0616478198c2248e164efecbdbbc5
auth.ts https://github.com/simstudioai/sim/pull/7695/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
subscription.test.ts https://github.com/simstudioai/sim/pull/7695/files#diff-d9e761d0d22661eb78c13ad23e9c65e37046fc36adbe1aa7d84101bb5c7ce15e
subscription.ts https://github.com/simstudioai/sim/pull/7695/files#diff-ba28a867a18d2fec4e36fc5dea465c7dcfd8b755794a2e6ea72b0eec32fd99be
usage.test.ts https://github.com/simstudioai/sim/pull/7695/files#diff-76cbcb288fc18e02a54367b5d926740e68df335b2b118c1d92cb407704fba1fd
usage.ts https://github.com/simstudioai/sim/pull/7695/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
organization.test.ts https://github.com/simstudioai/sim/pull/7695/files#diff-a039e5e03e58e6bf58e91f49d6d1b9c00a00b6146cb3f06fa4469274661e654c
organization.ts https://github.com/simstudioai/sim/pull/7695/files#diff-89b65bc5e4f411dfe94bcd00666debd6172f9f47cd8748a22b20f34b5aa3e52f
subscription-usage.test.ts https://github.com/simstudioai/sim/pull/7695/files#diff-7dbb55349f1a41c657d170bc3d514f9cea364e5f7ad34d2ab271b0206db58fec
subscription-usage.ts https://github.com/simstudioai/sim/pull/7695/files#diff-19f67a8e864e25904404a827ce2e5354c841734b750c22a938c1e8142fc1da42
apps/sim/app/workspace/[workspaceId]/search/components/search-source-setup.test.tsxhttps://github.com/simstudioai/sim/pull/7695/files#diff-c7caf9756bce9379b2344d4bb53ca7ff25a0616478198c2248e164efecbdbbc5
View file https://github.com/simstudioai/sim/blob/926e119f8a85d3c3d0393e522b2f721e6fe2c3a0/apps/sim/app/workspace/%5BworkspaceId%5D/search/components/search-source-setup.test.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7695/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7695/files#diff-c7caf9756bce9379b2344d4bb53ca7ff25a0616478198c2248e164efecbdbbc5
Please reload this pagehttps://github.com/simstudioai/sim/pull/7695/files
https://github.com/simstudioai/sim/pull/7695/files#diff-c7caf9756bce9379b2344d4bb53ca7ff25a0616478198c2248e164efecbdbbc5
apps/sim/lib/auth/auth.tshttps://github.com/simstudioai/sim/pull/7695/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
View file https://github.com/simstudioai/sim/blob/926e119f8a85d3c3d0393e522b2f721e6fe2c3a0/apps/sim/lib/auth/auth.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7695/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7695/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
https://github.com/simstudioai/sim/pull/7695/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
https://github.com/simstudioai/sim/pull/7695/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
https://github.com/simstudioai/sim/pull/7695/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
https://github.com/simstudioai/sim/pull/7695/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
https://github.com/simstudioai/sim/pull/7695/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
apps/sim/lib/billing/core/subscription.test.tshttps://github.com/simstudioai/sim/pull/7695/files#diff-d9e761d0d22661eb78c13ad23e9c65e37046fc36adbe1aa7d84101bb5c7ce15e
View file https://github.com/simstudioai/sim/blob/926e119f8a85d3c3d0393e522b2f721e6fe2c3a0/apps/sim/lib/billing/core/subscription.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7695/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7695/files#diff-d9e761d0d22661eb78c13ad23e9c65e37046fc36adbe1aa7d84101bb5c7ce15e
https://github.com/simstudioai/sim/pull/7695/files#diff-d9e761d0d22661eb78c13ad23e9c65e37046fc36adbe1aa7d84101bb5c7ce15e
https://github.com/simstudioai/sim/pull/7695/files#diff-d9e761d0d22661eb78c13ad23e9c65e37046fc36adbe1aa7d84101bb5c7ce15e
apps/sim/lib/billing/core/subscription.tshttps://github.com/simstudioai/sim/pull/7695/files#diff-ba28a867a18d2fec4e36fc5dea465c7dcfd8b755794a2e6ea72b0eec32fd99be
View file https://github.com/simstudioai/sim/blob/926e119f8a85d3c3d0393e522b2f721e6fe2c3a0/apps/sim/lib/billing/core/subscription.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7695/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7695/files#diff-ba28a867a18d2fec4e36fc5dea465c7dcfd8b755794a2e6ea72b0eec32fd99be
https://github.com/simstudioai/sim/pull/7695/files#diff-ba28a867a18d2fec4e36fc5dea465c7dcfd8b755794a2e6ea72b0eec32fd99be
https://github.com/simstudioai/sim/pull/7695/files#diff-ba28a867a18d2fec4e36fc5dea465c7dcfd8b755794a2e6ea72b0eec32fd99be
https://github.com/simstudioai/sim/pull/7695/files#diff-ba28a867a18d2fec4e36fc5dea465c7dcfd8b755794a2e6ea72b0eec32fd99be
https://github.com/simstudioai/sim/pull/7695/files#diff-ba28a867a18d2fec4e36fc5dea465c7dcfd8b755794a2e6ea72b0eec32fd99be
apps/sim/lib/billing/core/usage.test.tshttps://github.com/simstudioai/sim/pull/7695/files#diff-76cbcb288fc18e02a54367b5d926740e68df335b2b118c1d92cb407704fba1fd
View file https://github.com/simstudioai/sim/blob/926e119f8a85d3c3d0393e522b2f721e6fe2c3a0/apps/sim/lib/billing/core/usage.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7695/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7695/files#diff-76cbcb288fc18e02a54367b5d926740e68df335b2b118c1d92cb407704fba1fd
https://github.com/simstudioai/sim/pull/7695/files#diff-76cbcb288fc18e02a54367b5d926740e68df335b2b118c1d92cb407704fba1fd
https://github.com/simstudioai/sim/pull/7695/files#diff-76cbcb288fc18e02a54367b5d926740e68df335b2b118c1d92cb407704fba1fd
https://github.com/simstudioai/sim/pull/7695/files#diff-76cbcb288fc18e02a54367b5d926740e68df335b2b118c1d92cb407704fba1fd
https://github.com/simstudioai/sim/pull/7695/files#diff-76cbcb288fc18e02a54367b5d926740e68df335b2b118c1d92cb407704fba1fd
https://github.com/simstudioai/sim/pull/7695/files#diff-76cbcb288fc18e02a54367b5d926740e68df335b2b118c1d92cb407704fba1fd
https://github.com/simstudioai/sim/pull/7695/files#diff-76cbcb288fc18e02a54367b5d926740e68df335b2b118c1d92cb407704fba1fd
https://github.com/simstudioai/sim/pull/7695/files#diff-76cbcb288fc18e02a54367b5d926740e68df335b2b118c1d92cb407704fba1fd
apps/sim/lib/billing/core/usage.tshttps://github.com/simstudioai/sim/pull/7695/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
View file https://github.com/simstudioai/sim/blob/926e119f8a85d3c3d0393e522b2f721e6fe2c3a0/apps/sim/lib/billing/core/usage.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7695/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7695/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
https://github.com/simstudioai/sim/pull/7695/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
https://github.com/simstudioai/sim/pull/7695/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
https://github.com/simstudioai/sim/pull/7695/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
https://github.com/simstudioai/sim/pull/7695/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
Please reload this pagehttps://github.com/simstudioai/sim/pull/7695/files
https://github.com/simstudioai/sim/pull/7695/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
https://github.com/simstudioai/sim/pull/7695/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
https://github.com/simstudioai/sim/pull/7695/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
Please reload this pagehttps://github.com/simstudioai/sim/pull/7695/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7695/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.