From 2ecbfea7e95a813851fe0ed4d30c632ac14ee500 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Mon, 23 Nov 2026 13:49:53 -0700 Subject: [PATCH] Hotfix: the user's config can silence the request to run a learning cycle (learning.cycle_notice) Co-Authored-By: Claude Fable 5.2 (cherry picked from commit c5c39116018a02316393c8b78111fd4f02628a22) --- sisi/cycle.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sisi/cycle.py b/sisi/cycle.py index 3468258..06d8de1 100644 --- a/sisi/cycle.py +++ b/sisi/cycle.py @@ -200,7 +200,10 @@ def due_notice(session=None): n = len(proposed()) fl = len(L.flagged()) lines = [] - if n >= DUE_AFTER or fl: + # The user's config can silence the request to run a cycle (learning.cycle_notice: false). + from . import store + notice = (store.config().get("learning") or {}).get("cycle_notice", True) + if notice and (n >= DUE_AFTER or fl): lines.append("sisi: a learning cycle is due (%d proposed learning(s)%s; `sisi cycle` prints the brief)" % (n, ", %d flagged not working" % fl if fl else "")) pend = L.pending_notice()