From 227725b07d2ca36aaccd7ca756563933d11da208 Mon Sep 17 00:00:00 2001 From: Bryan Roscoe Date: Fri, 19 Jun 2026 15:48:15 -0500 Subject: [PATCH] Default auto-update to off (opt-in) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The build is unsigned, so silently downloading and installing a new version on launch — possibly mid-task — is surprising. Default off; the update is still surfaced via the header badge and the Update now button. --- v2/src/lib/prefs.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/v2/src/lib/prefs.ts b/v2/src/lib/prefs.ts index 0b114e7..26c66dc 100644 --- a/v2/src/lib/prefs.ts +++ b/v2/src/lib/prefs.ts @@ -1,8 +1,11 @@ const KEY = "shieldopt.autoUpdate"; +// Opt-in: off unless the user explicitly enables it. The build is unsigned, so +// silently downloading + installing a new version on launch (possibly mid-task) +// is surprising — the update is still surfaced via the badge / "Update now". export function getAutoUpdate(): boolean { - if (typeof localStorage === "undefined") return true; - return localStorage.getItem(KEY) !== "false"; + if (typeof localStorage === "undefined") return false; + return localStorage.getItem(KEY) === "true"; } export function setAutoUpdate(enabled: boolean): void {