René's URL Explorer Experiment


Title: fix(billing): withhold the free allowance from Gmail aliases of an existing account by waleedlatif1 · Pull Request #9418 · simstudioai/sim · GitHub

Open Graph Title: fix(billing): withhold the free allowance from Gmail aliases of an existing account by waleedlatif1 · Pull Request #9418 · simstudioai/sim

X Title: fix(billing): withhold the free allowance from Gmail aliases of an existing account by waleedlatif1 · Pull Request #9418 · simstudioai/sim

Description: Summary Gmail delivers every dot and +tag variant of an address (and its googlemail.com twin) to one inbox, so a single person could register a.b@gmail.com, ab+1@gmail.com, … and get a fresh free allowance on each A new account whose Gmail inbox another account (banned or not) already holds is now created with no free allowance — same "one free trial per identity" treatment returning deleted-account identities already get; signup itself is never refused, and paid plans and prepaid credit are untouched Applied on both allowance paths: handleNewUser and the createUserStatsIfMissing fallback, via one identityHadFreeAllowance check New gmailMailbox() SQL expression in the schema (built on foldedEmail) plus partial index user_gmail_mailbox_idx, so the lookup is an index probe instead of a scan of user; migration builds it CONCURRENTLY Non-Gmail domains are never folded; fails open (logs, grants the allowance) on lookup error Type of Change Bug fix Testing lib/users/gmail-alias.integration.ts against real Postgres with INTEGRATION_DB_PROVISION=migrate (exercises migration 0439): 5/5 pass. Disabling the check turns the 3 withholding tests red; one test asserts the plan uses user_gmail_mailbox_idx lib/billing/core/usage.test.ts: 25/25 pass check:migrations, check:file-names, check:test-patterns, check:comment-hygiene, biome on touched files; drizzle-kit generate reports no drift Full type-check / audits / suite left to CI Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing (new tests pass the test-audit authoring gate) 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 Gmail delivers every dot and +tag variant of an address (and its googlemail.com twin) to one inbox, so a single person could register a.b@gmail.com, ab+1@gmail.com, … and get a fresh free ...

X Description: Summary Gmail delivers every dot and +tag variant of an address (and its googlemail.com twin) to one inbox, so a single person could register a.b@gmail.com, ab+1@gmail.com, … and get a fresh free ...

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

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:8705f0de-1f4f-2402-0ae2-4499be6c08b3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idADC0:3C4608:A9D3B:F5164:6AFB0BFC
html-safe-nonce9844f3480c6caea8765c8f5749501b1789bf2b5a170a11eabf2ec095f33dc4f1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREMwOjNDNDYwODpBOUQzQjpGNTE2NDo2QUZCMEJGQyIsInZpc2l0b3JfaWQiOiI5MDkwMjI0NDE4OTMxMjgwODkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1a99c5f5628312830d5fb06c29bf28ea7c5508e69bd0eb83e1214e48fda7ae66
hovercard-subject-tagpull_request:5056480569
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/9418/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Gmail delivers every dot and +tag variant of an address (and its googlemail.com twin) to one inbox, so a single person could register a.b@gmail.com, ab+1@gmail.com, … and get a fresh free ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4275ec98d19a530a209480d02854be81de24ad5a05b648333242fc516bfb573c
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
releaseba13208acc32a4e7a4a3b54cb2f0dea6001ba5f8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/9418/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9418%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%2F9418%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/9418/files
Reloadhttps://github.com/simstudioai/sim/pull/9418/files
Reloadhttps://github.com/simstudioai/sim/pull/9418/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
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/gmail-alias-free-credithttps://github.com/simstudioai/sim/tree/fix/gmail-alias-free-credit
Conversation 25 https://github.com/simstudioai/sim/pull/9418
Commits 4 https://github.com/simstudioai/sim/pull/9418/commits
Checks 67 https://github.com/simstudioai/sim/pull/9418/checks
Files changed https://github.com/simstudioai/sim/pull/9418/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9418/files
fix(billing): withhold the free allowance from Gmail aliases of an existing account https://github.com/simstudioai/sim/pull/9418/files#top
Show all changes 4 commits https://github.com/simstudioai/sim/pull/9418/files
f1a9d8c fix(billing): withhold the free allowance from Gmail aliases of an ex… waleedlatif1 Oct 28, 2026 https://github.com/simstudioai/sim/pull/9418/commits/f1a9d8c5746502b179b1b485361d221990ad1bcd
aaca509 fix(billing): count only an earlier account as the Gmail inbox holder waleedlatif1 Oct 28, 2026 https://github.com/simstudioai/sim/pull/9418/commits/aaca509e973e29de37c245d6fa5fb58d93435425
47e8605 fix(billing): count only a verified earlier account as the Gmail inbo… waleedlatif1 Oct 28, 2026 https://github.com/simstudioai/sim/pull/9418/commits/47e8605e1acf7ee6d6673eb50860164ebe36b7e9
6c64da6 fix(billing): count any earlier account as the Gmail inbox holder, ve… waleedlatif1 Oct 28, 2026 https://github.com/simstudioai/sim/pull/9418/commits/6c64da6722cbf9cc7578b40445dc64b49eb7b009
Clear filters https://github.com/simstudioai/sim/pull/9418/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9418/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9418/files
usage.test.ts https://github.com/simstudioai/sim/pull/9418/files#diff-76cbcb288fc18e02a54367b5d926740e68df335b2b118c1d92cb407704fba1fd
usage.ts https://github.com/simstudioai/sim/pull/9418/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
gmail-alias.integration.ts https://github.com/simstudioai/sim/pull/9418/files#diff-ff76b6cfbf5c9c489a68fe9b1081be218e2b12dbd585db9a7bff9df6128fa255
gmail-alias.ts https://github.com/simstudioai/sim/pull/9418/files#diff-5134a58049c24668add29766a5763c2be8b46bcc07541adcf15faae62773b60f
0439_gmail_mailbox_index.sql https://github.com/simstudioai/sim/pull/9418/files#diff-1e95717a0b11b64e6e6a8d32bdbaa657653bb5ec85c046c8cbac149aa8251d21
0439_snapshot.json https://github.com/simstudioai/sim/pull/9418/files#diff-45abc01dc26e01adb0b2edb5c6703043f12b9dcaeb180b9e2e5428b930a315b7
_journal.json https://github.com/simstudioai/sim/pull/9418/files#diff-37150cc65ad16ee6fbc5fa318fc096be7730e16d63eaf863e3df5521b7030649
schema.ts https://github.com/simstudioai/sim/pull/9418/files#diff-9a959e2ce3cb4c86957bbae021d06eae364f7b0cb18964f5873bab53220af928
apps/sim/lib/billing/core/usage.test.tshttps://github.com/simstudioai/sim/pull/9418/files#diff-76cbcb288fc18e02a54367b5d926740e68df335b2b118c1d92cb407704fba1fd
View file https://github.com/simstudioai/sim/blob/6c64da6722cbf9cc7578b40445dc64b49eb7b009/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/9418/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9418/files#diff-76cbcb288fc18e02a54367b5d926740e68df335b2b118c1d92cb407704fba1fd
https://github.com/simstudioai/sim/pull/9418/files#diff-76cbcb288fc18e02a54367b5d926740e68df335b2b118c1d92cb407704fba1fd
apps/sim/lib/billing/core/usage.tshttps://github.com/simstudioai/sim/pull/9418/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
View file https://github.com/simstudioai/sim/blob/6c64da6722cbf9cc7578b40445dc64b49eb7b009/apps/sim/lib/billing/core/usage.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9418/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9418/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
https://github.com/simstudioai/sim/pull/9418/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
https://github.com/simstudioai/sim/pull/9418/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
https://github.com/simstudioai/sim/pull/9418/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
https://github.com/simstudioai/sim/pull/9418/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
https://github.com/simstudioai/sim/pull/9418/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
https://github.com/simstudioai/sim/pull/9418/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
https://github.com/simstudioai/sim/pull/9418/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
https://github.com/simstudioai/sim/pull/9418/files#diff-41305ed8be4067cf242cf6c6f01c4c2aa537836b1072141acf9adaef0e2a40e8
apps/sim/lib/users/gmail-alias.integration.tshttps://github.com/simstudioai/sim/pull/9418/files#diff-ff76b6cfbf5c9c489a68fe9b1081be218e2b12dbd585db9a7bff9df6128fa255
View file https://github.com/simstudioai/sim/blob/6c64da6722cbf9cc7578b40445dc64b49eb7b009/apps/sim/lib/users/gmail-alias.integration.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9418/{{ revealButtonHref }}
apps/sim/lib/users/gmail-alias.tshttps://github.com/simstudioai/sim/pull/9418/files#diff-5134a58049c24668add29766a5763c2be8b46bcc07541adcf15faae62773b60f
View file https://github.com/simstudioai/sim/blob/6c64da6722cbf9cc7578b40445dc64b49eb7b009/apps/sim/lib/users/gmail-alias.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9418/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/9418/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9418/files
packages/db/migrations/0439_gmail_mailbox_index.sqlhttps://github.com/simstudioai/sim/pull/9418/files#diff-1e95717a0b11b64e6e6a8d32bdbaa657653bb5ec85c046c8cbac149aa8251d21
View file https://github.com/simstudioai/sim/blob/6c64da6722cbf9cc7578b40445dc64b49eb7b009/packages/db/migrations/0439_gmail_mailbox_index.sql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9418/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/9418/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9418/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.