From 44233170edbb51bc74e89ca3bcff580a27b25cae Mon Sep 17 00:00:00 2001 From: collissimo <148455189+collissimo@users.noreply.github.com> Date: Sun, 15 Nov 2026 18:24:18 +0100 Subject: [PATCH] fix(desktop): look for updates every 4 minutes again Upstream #28481 slowed the desktop update poll to 4 hours, so new fork nightlies reached the app hours late. Co-Authored-By: Claude Opus 5.5 --- apps/desktop/src/updates/DesktopUpdates.test.ts | 6 +++--- apps/desktop/src/updates/DesktopUpdates.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/desktop/src/updates/DesktopUpdates.test.ts b/apps/desktop/src/updates/DesktopUpdates.test.ts index 53bd956ca6da7..1ef5d629d34ef 100644 --- a/apps/desktop/src/updates/DesktopUpdates.test.ts +++ b/apps/desktop/src/updates/DesktopUpdates.test.ts @@ -259,7 +259,7 @@ describe("DesktopUpdates", () => { ).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer))); }); - it.effect("checks shortly after startup and then every four hours", () => { + it.effect("checks shortly after startup and then every four minutes", () => { const harness = makeHarness(); return Effect.scoped( @@ -270,10 +270,10 @@ describe("DesktopUpdates", () => { yield* TestClock.adjust("15 seconds"); assert.equal(harness.checkCount(), 1); - yield* TestClock.adjust("3 hours"); + yield* TestClock.adjust("3 minutes"); assert.equal(harness.checkCount(), 1); - yield* TestClock.adjust("1 hour"); + yield* TestClock.adjust("1 minute"); assert.equal(harness.checkCount(), 2); }), ).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer))); diff --git a/apps/desktop/src/updates/DesktopUpdates.ts b/apps/desktop/src/updates/DesktopUpdates.ts index 055c6574391a6..9a6c3d56178e7 100644 --- a/apps/desktop/src/updates/DesktopUpdates.ts +++ b/apps/desktop/src/updates/DesktopUpdates.ts @@ -62,7 +62,7 @@ import { const CHANNEL_CHANGE_RETRY_DELAY = Duration.seconds(1); const CHANNEL_CHANGE_RETRIES = 30; const AUTO_UPDATE_STARTUP_DELAY = "15 seconds"; -const AUTO_UPDATE_POLL_INTERVAL = "4 hours"; +const AUTO_UPDATE_POLL_INTERVAL = "4 minutes"; const UPDATE_CHECK_WAIT = Duration.seconds(90); type UpdateAction = "check" | "download" | "install" | "install-recovery" | "channel";