[P3] Other tabs report "Update download failed" after an update succeeds #36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Priority: P3
Type: bug
Source: project review requested 2026-10-26 (second pass)
Location:
src/offline.ts:33-34Problem and evidence
Any watched service worker becoming redundant sets the failure state, including workers replaced normally. Tab A installs version 1; tab B accepts version 2; tab A then shows "Update download failed. Your installed copy is unchanged." with a retry button. Two updates while one is waiting cause the same message.
Suggested correction
Count redundancy as a failure only for a worker that never reached installed; clear the failure when a worker installs.
Acceptance criteria
Browser lifecycle regression for both scenarios; offline checks pass; pnpm verify passes.
Scope: maintenance of the educational simulator. Preserve historical R1 acceptance and operational-validation limits.
Fixed on
maintenance/review-2026-10-27in90c935a— PR #40.Redundancy counts as failure only before a worker installed. Two-tab and double-update Chromium lifecycle reproductions now show "Available offline".
Branch verification:
pnpm verify145 tests and release budgets; Chromium/Firefox/WebKit review, replay, compatibility and offline lifecycle checks; CI verify runs #111/#112 pass. Record:docs/MAINTENANCE-2026-10-27.md. Closes on merge of PR #40.