From bcc758eedfa30abc6d62daaf02b6cdc4473af757 Mon Sep 17 00:00:00 2001 From: Sam Dornan Date: Mon, 28 Sep 2026 22:50:59 -0400 Subject: [PATCH] fix(v2): pin trailing: false on native reprobe throttle (#4928) --- frontend/src/v2/layouts/AppLayout.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/frontend/src/v2/layouts/AppLayout.vue b/frontend/src/v2/layouts/AppLayout.vue index 9d94c560a..a241fcfd4 100644 --- a/frontend/src/v2/layouts/AppLayout.vue +++ b/frontend/src/v2/layouts/AppLayout.vue @@ -123,15 +123,21 @@ watch( // notice. Re-asked when the window comes back, which is when whatever did the // installing has just been in front. Throttled because alt-tabbing is cheap // and the shell answers this off the filesystem; a no-op outside the shell. +// No trailing call: a refocus inside the window would queue a second forced +// probe of every platform. const NATIVE_REPROBE_THROTTLE_MS = 10_000; useEventListener( window, "focus", - useThrottleFn(() => { - const slugs = platformsStore.allPlatforms.map((p) => p.slug); - if (slugs.length === 0) return; - void nativeStore.probe(slugs, { force: true }); - }, NATIVE_REPROBE_THROTTLE_MS), + useThrottleFn( + () => { + const slugs = platformsStore.allPlatforms.map((p) => p.slug); + if (slugs.length === 0) return; + void nativeStore.probe(slugs, { force: true }); + }, + NATIVE_REPROBE_THROTTLE_MS, + false, + ), ); // Developer debug overlay: opt-in via Settings → Developer (per-device).