we (web engine): Experimental web browser project to understand the limits of Claude
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Service worker update lifecycle and persistence cleanup #213

open opened by pierrelf.com

Finish the registration update model and cleanup behavior.

Scope:

  • Implement byte-for-byte update checks for service worker scripts and imported script dependencies.
  • Dispatch updatefound and manage installing/waiting/active slots through replacement and promotion.
  • Implement waiting worker activation on skipWaiting(), client release, and unregister.
  • Clean obsolete caches and registration records during activate/unregister paths where requested by script.
  • Persist lifecycle state across browser restart and recover safely from partially-written metadata.

Acceptance criteria:

  • Tests cover no-op update, changed script update, imported script change, updatefound, waiting promotion, unregister cleanup, and restart recovery.
  • Existing active workers continue serving clients until activation rules promote the waiting worker.
  • State transitions are deterministic and covered without sleeps where possible.
sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:meotu43t6usg4qdwzenk4s2t/sh.tangled.repo.issue/3mm26w3qvzf2k