From 1796427cfc59e4961102d713c69dee4161be92df Mon Sep 17 00:00:00 2001 From: Stuart Date: Tue, 25 Aug 2026 19:53:03 +1000 Subject: [PATCH] Adopt server usage count unconditionally on identity resolve The old gate only adopted the server count when it was >= local, so a client whose localStorage ran ahead could never be corrected downward and stayed blocked at its own inflated count. The server counter is global truth per identity - always adopt it. --- app.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app.js b/app.js index bbebf5c..5da1163 100644 --- a/app.js +++ b/app.js @@ -4221,11 +4221,7 @@ async function resolveIdentity() { const currentMonth = getCurrentYearMonth() const serverMonth = data.usage_month || currentMonth const serverCount = serverMonth === currentMonth ? data.usage_count : 0 - const local = getUsageData() - const localCount = local.month === currentMonth ? local.count : 0 - if (serverCount >= localCount || serverMonth > local.month) { - localStorage.setItem(USAGE_STORAGE_KEY, JSON.stringify({ count: serverCount, month: currentMonth })) - } + localStorage.setItem(USAGE_STORAGE_KEY, JSON.stringify({ count: serverCount, month: currentMonth })) updateUsageDisplay() }