Skip to content

fix(functions): Report mailing list unsubscribe failures - #85

Merged
WillieCubed merged 1 commit into
mainfrom
codex/verify-unsubscribe
Oct 2, 2026
Merged

WillieCubed merged 1 commit into
mainfrom
codex/verify-unsubscribe

Conversation

@WillieCubed

@WillieCubed WillieCubed commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

TL;DR

The account's unsubscribe button reports provider failures and lets members retry.

Overview of Changes

Account unsubscribe waits for Beehiiv to accept removal of all linked subscriptions before confirming the change. Network failures, provider outages, and missing configuration produce an error instead of a false success notice.

Regression tests cover failure and retry, normal unsubscribe and rejoin, and the email's one-click POST without cookies or sign-in. The one-click handler rejects forged links and returns a retryable error on provider failure. pnpm check passes.

Follow-ups

The fix is merged, but production publishing was skipped: LVBT_WORKERS_PRODUCTION_ENABLED is true while CLOUDFLARE_WORKERS_CANDIDATE_ENABLED is false. The protected staging and explicit promotion workflow is still awaiting activation in the related website task. Publish this fix through that workflow once it is ready.

Verify the production unsubscribe against the existing test account's welcome-email link and confirm its Beehiiv subscription is inactive. The user has been asked for that link.

Leaving the mailing list confirms success only after Beehiiv accepts
all linked subscriptions. Provider outages leave the action available
so members can retry instead of seeing a false success message.

Co-authored-by: Codex <noreply@openai.com>
@WillieCubed
WillieCubed enabled auto-merge (rebase) October 2, 2026 17:35
@WillieCubed
WillieCubed merged commit 7582c5f into main Oct 2, 2026
20 of 21 checks passed
@WillieCubed
WillieCubed deleted the codex/verify-unsubscribe branch October 2, 2026 17:36

This branch was successfully deployed

No deployments
worker-preview — 1f3aa8c0 Deployed Oct 2, 2026 by WillieCubed via Worker preview #108
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