Skip to content

Activate service worker updates immediately - #94

Merged
ctoth merged 1 commit into
masterfrom
agent/issue-65-service-worker-update
Jul 30, 2026
Merged

Activate service worker updates immediately#94
ctoth merged 1 commit into
masterfrom
agent/issue-65-service-worker-update

Conversation

@ctoth

@ctoth ctoth commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • activate newly installed service-worker updates immediately
  • add a regression test covering worker startup activation

Root cause

The inject-manifest service worker claimed clients after activation but never called skipWaiting(), so an installed update remained waiting until every open tab closed.

Impact

Deployed updates can activate while existing tabs remain open instead of leaving users on the previous bundle indefinitely.

Verification

  • npm test -- src/sw.test.ts (red before the fix, green after)
  • npm test (105 files, 1043 tests)
  • npm run typecheck
  • npm run build
  • npm run precommit

Closes #65

@ctoth
ctoth merged commit efef0d2 into master Jul 30, 2026
1 check passed
github-actions Bot pushed a commit that referenced this pull request Jul 30, 2026
…-update

Activate service worker updates immediately efef0d2
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.

Service-worker updates never activate while a tab is open

1 participant