Complete private outbox deletion before device sign-out #293

Closed
opened 2026-08-08 11:09:56 +00:00 by timmy · 0 comments
Owner

Problem

Sign out currently invokes IndexedDB deletion without awaiting completion while window/service-worker contexts can retain open outbox connections. The UI may navigate away even though queued private issue/comment bodies remain and can later resume delivery.

Scope

  • coordinate sign-out with the service worker and stop background flush admission
  • close long-lived outbox database connections on version change/purge
  • await IndexedDB deletion before navigating
  • surface blocked/error deletion rather than silently claiming the device was cleared

Acceptance

  • navigation occurs only after outbox deletion succeeds
  • service-worker purge closes its store and prevents concurrent/new flush work
  • open IndexedDB connections close on versionchange
  • deletion errors keep the operator on-page with explicit failure guidance
  • focused and full suites pass
## Problem Sign out currently invokes IndexedDB deletion without awaiting completion while window/service-worker contexts can retain open outbox connections. The UI may navigate away even though queued private issue/comment bodies remain and can later resume delivery. ## Scope - coordinate sign-out with the service worker and stop background flush admission - close long-lived outbox database connections on version change/purge - await IndexedDB deletion before navigating - surface blocked/error deletion rather than silently claiming the device was cleared ## Acceptance - navigation occurs only after outbox deletion succeeds - service-worker purge closes its store and prevents concurrent/new flush work - open IndexedDB connections close on versionchange - deletion errors keep the operator on-page with explicit failure guidance - focused and full suites pass
timmy self-assigned this 2026-08-08 11:09:56 +00:00
timmy closed this issue 2026-08-08 11:16:14 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#293
No description provided.