The best way to control Claude Code, Codex and more from any computer or phone
fix(desktop): poll for updates every 4 hours, not 4 minutes (#28481)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Jintao Zhang committed
Nov 13, 2026 at 06:45 UTC
731291ee1ff2ebec7d0208b1243043293bea210c
2 files changed
+21
-1
apps/desktop/src/updates/DesktopUpdates.test.ts
+20
@@ -247,6 +247,26 @@ describe("DesktopUpdates", () => {
247
).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer)));
248
});
249
250
+ it.effect("checks shortly after startup and then every four hours", () => {
251
+ const harness = makeHarness();
252
+
253
+ return Effect.scoped(
254
+ Effect.gen(function* () {
255
+ const updates = yield* DesktopUpdates.DesktopUpdates;
256
+ yield* updates.configure;
257
+
258
+ yield* TestClock.adjust("15 seconds");
259
+ assert.equal(harness.checkCount(), 1);
260
+
261
+ yield* TestClock.adjust("3 hours");
262
+ assert.equal(harness.checkCount(), 1);
263
+
264
+ yield* TestClock.adjust("1 hour");
265
+ assert.equal(harness.checkCount(), 2);
266
+ }),
267
+ ).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer)));
268
+ });
269
+
270
it.effect(
271
"rejects install while a refresh check is in progress and releases the reservation",
272
() =>
apps/desktop/src/updates/DesktopUpdates.ts
+1
-1
@@ -60,7 +60,7 @@ import {
60
const CHANNEL_CHANGE_RETRY_DELAY = Duration.seconds(1);
61
const CHANNEL_CHANGE_RETRIES = 30;
62
const AUTO_UPDATE_STARTUP_DELAY = "15 seconds";
63
-const AUTO_UPDATE_POLL_INTERVAL = "4 minutes";
63
+const AUTO_UPDATE_POLL_INTERVAL = "4 hours";
64
const PREPARED_INSTALL_CHECK_WAIT = Duration.seconds(90);
65
66
type UpdateAction = "check" | "download" | "install" | "install-recovery" | "channel";