Hotfix: the user's config can silence the request to run a learning cycle (learning.cycle_notice)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
(cherry picked from commit c5c39116018a02316393c8b78111fd4f02628a22)
This commit is contained in:
swaits committed 2026-11-23 13:50:58 -07:00
1 parent b10787659f
commit 2ecbfea7e9
1 file changed
+4 -1
+4 -1
View File
@@ -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()