Skip to content

Retry rejected push batches with bounded subdivision - #7580

Closed
bb-slop-cop[bot] wants to merge 1 commit into
mainfrom
slopcop/issue-7578
Closed

bb-slop-cop[bot] wants to merge 1 commit into
mainfrom
slopcop/issue-7578

Conversation

@bb-slop-cop

@bb-slop-cop bb-slop-cop Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · new-issue-autopilot

Human comments

What was wrong

The push sender batches registered subscriptions only by request size. A request-level cross-project rejection terminates delivery to every subscription in that batch, including otherwise valid devices. Alert pushes and read-dismissal pushes share this sender. Reproduced against trusted main in two clean checkouts; no live Expo account or physical-device delivery is claimed.

Report: https://get-bb.github.io/reports/issues/7578.html

What changed

Retry only cross-project-rejected batches by dividing each into two smaller batches, stopping at a singleton. Preserve normal ticket indexing, accepted counts, failure aggregation, and removal of unregistered devices. Other request errors are not retried. This stays within the push-notifications subsystem and changes no public protocol, stored data, dependencies, or CLI/SDK contracts.

Changed text lines: 151 (10 production additions + 141 test additions; 0 deletions), across 2 files.

How you verified

  • Added the regression before the sender fix; on unchanged main it fails because the send RPC omits mobile.
  • Repeated the same failure in a second fresh detached checkout at da3e60b81d560e114a2bec724bb59c997aaaae7f using pnpm exec turbo run test --force --filter=bb-plugin-push-notifications -- server.test.ts -t 'delivers alerts and dismissals across mixed Expo projects'.
  • pnpm exec turbo run test lint typecheck --filter=bb-plugin-push-notifications: 67 tests pass, lint passes, typecheck passes.
  • Regression verifies alerts, dismissal pushes, accepted counts, partial ticket failures, correct unregistered-row removal after splitting, and token-free logging. Guard tests cover singleton and unrelated request errors.
  • pnpm exec turbo run build: 74 tasks pass after documented SDK bootstrap; git diff --check passes; no binary changes.
  • No open linked PR existed before opening this PR; the prior linked PR was closed unmerged. Physical-device notification receipt remains unverified.

Fixes #7578

AGENT GENERATED

@github-actions

Copy link
Copy Markdown
Contributor

This is an automated message. We have closed this pull request because it has been open for more than two weeks.

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.

Mobile pushes fail when registered devices use different Expo projects

1 participant