Bump to v1.4.0: tap-to-dismiss, docker restart detection, cleanup thread fix

Add /clear-all endpoint and wire it to the tap handler so tapping the
display dismisses active warnings/critical alerts. Fix docker detector
to track restart count deltas instead of relying on the transient
"restarting" state. Wrap cleanup thread in try/except so it can't die
silently and leave events stuck forever.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-06 11:54:00 -06:00
parent fa0c16609d
commit c3ceb74ce8
6 changed files with 61 additions and 6 deletions

View File

@@ -226,6 +226,17 @@ def post_event():
return jsonify({"status": "ok", "current_state": state}), 200
@app.route("/clear-all", methods=["POST"])
def clear_all_events():
"""Clear all active events."""
with events_lock:
count = len(active_events)
active_events.clear()
state = write_status()
return jsonify({"status": "cleared", "count": count, "current_state": state}), 200
@app.route("/clear", methods=["POST"])
def clear_event():
"""