From ca678b17843f0128cfb485458d57f45d3d81b1f3 Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Sun, 2 Aug 2026 18:06:10 -0400 Subject: [PATCH] Stamp the AI page build and tear down stale copies of its script The tab bar uses Unraid's localURL, which swaps content by AJAX without tearing down the previous page's JavaScript, so old copies keep their timers and their state. That makes "is the browser running what I deployed" unanswerable from the server, and explains banner polls arriving far faster than the 30s timer. The page now stamps its build, says plainly when its own script is not the one running, and stops the previous copy's timers. --- Plugin/unraid/pages/ai.php | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/Plugin/unraid/pages/ai.php b/Plugin/unraid/pages/ai.php index 18a7394..9dc09d5 100644 --- a/Plugin/unraid/pages/ai.php +++ b/Plugin/unraid/pages/ai.php @@ -57,6 +57,17 @@ // api/ai.php stats / ask / poll / clear // api/readscript.php source viewer contents // ═══════════════════════════════════════════════════════════════════════════════════════════════ +