From 0bfa652b31d0af8db358b381dec7b4dc7b2a0c8c Mon Sep 17 00:00:00 2001 From: Marius Mutu Date: Sun, 26 Apr 2026 08:04:34 +0000 Subject: [PATCH] fix(heartbeat): suppress git-only alerts when rest is ok Uncommitted files alone are not an actionable heartbeat alert. Only send a message if there are other findings besides git status. Co-Authored-By: Claude Sonnet 4.6 --- src/heartbeat.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/heartbeat.py b/src/heartbeat.py index cc3c63c..895a4e9 100644 --- a/src/heartbeat.py +++ b/src/heartbeat.py @@ -109,6 +109,11 @@ def run_heartbeat(config: dict | None = None) -> str: if not all_results: return "HEARTBEAT_OK" + # Git uncommitted files alone are not an actionable alert — stay silent + non_git = [r for r in all_results if not r.startswith("Git:")] + if not non_git: + return "HEARTBEAT_OK" + return " | ".join(all_results)