feat(emails): add KiloClaw purchase confirmation#3049
Merged
evanjacobson merged 5 commits intomainfrom May 5, 2026
Merged
Conversation
Contributor
Code Review SummaryStatus: 1 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Other Observations (not in diff)Issues found in unchanged code that cannot receive inline comments:
Files Reviewed (3 files)
Reviewed by gpt-5.5-2026-04-23 · 1,333,271 tokens |
dbfccd0 to
087d9c0
Compare
087d9c0 to
a3a8cd9
Compare
jeanduplessis
approved these changes
May 5, 2026
74e0fcb to
b8fb31e
Compare
…ons (#3054) Adds a Subsciription Started email for credit-based billing
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
KiloClaw purchases now send the transactional confirmation users expect when a subscription becomes active, closing a gap where successful activations were only reflected in-app.
This adds a Mailgun-backed KiloClaw subscription-started email with durable send markers so webhook retries can recover missed sends without double-emailing users. The implementation follows the existing server-rendered email template conventions and extends the current KiloClaw email-log pattern for activation-period dedupe.
#3054 merged into this branch
Implementation notes
kiloClawSubscriptionStartedtransactional email template and sender.kiloclaw_email_logwithperiod_startso subscription-started emails dedupe per activation period rather than forever per instance.Verification
Visual Changes
Reviewer Notes
Suggested review focus
kiloclaw_email_log.period_startschema change.past_due, andunpaid.provider_not_configuredversus terminal invalid-recipient outcomes.Deployment note: the replacement unique index for
kiloclaw_email_logwill be created separately outside the Drizzle migration withCREATE UNIQUE INDEX CONCURRENTLYbecause the table has roughly 260.7K rows and Drizzle migrations run inside a transaction. I will run:then,