From 3bb7698f88b2291da046744c5f76af5ff9ba570a Mon Sep 17 00:00:00 2001 From: "Abiba (pi)" Date: Mon, 29 Jun 2026 22:22:59 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20clear=20stale=20errors=20on=20successful?= =?UTF-8?q?=20poll=20=E2=80=94=20prevents=20phantom=20error=20alerts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same fix as applied to the pi Zulip extension: last_error_msg and last_error_at are now cleared on every successful poll cycle, not just on reconnect. Health monitors no longer show stale errors. --- plugins/platforms/zulip/adapter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/platforms/zulip/adapter.py b/plugins/platforms/zulip/adapter.py index 7e48173..1937f8f 100644 --- a/plugins/platforms/zulip/adapter.py +++ b/plugins/platforms/zulip/adapter.py @@ -449,6 +449,10 @@ class ZulipAdapter(BasePlatformAdapter): except Exception: pass + # Clear stale errors on successful poll cycle + self._health_stats["last_error_msg"] = None + self._health_stats["last_error_at"] = None + # Gen 4: Heartbeat logging — prove poll loop is alive now = time.time() if now - self._last_heartbeat_time > HEARTBEAT_INTERVAL: