Skip to content

Friend-share email: temporal debounce (fix silent suppression) - #694

Merged
mircealungu merged 1 commit into
masterfrom
wt/friend-share-original
Aug 1, 2026
Merged

Friend-share email: temporal debounce (fix silent suppression)#694
mircealungu merged 1 commit into
masterfrom
wt/friend-share-original

Conversation

@mircealungu

Copy link
Copy Markdown
Member

Follow-up. The old unread==1 email rule meant a single un-opened share silenced every future share email to that friend until they cleared their inbox (diagnosed live on prod). Replace with a temporal debounce: suppress only if an earlier share reached the recipient within 10 min. Collapses a burst to one email; a genuinely later share notifies. Race-free (keyed on id order). +3 tests.

🤖 Generated with Claude Code

The count-based rule (email only when unread==1) had a sharp edge: a single
un-opened share silenced ALL future share emails to that friend until they
zeroed their inbox. Replace with a temporal debounce — suppress only if an
EARLIER share reached the recipient within SHARE_EMAIL_DEBOUNCE_MINUTES (10).
Collapses a burst to one email; a genuinely later share still notifies.
Keyed on id order so a simultaneous burst can't suppress all its members.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mircealungu
mircealungu merged commit d4cc90b into master Aug 1, 2026
1 check failed
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

ArchLens - No architecturally relevant changes to the existing views

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant