From dcbfc79f8d80773c8e8c8ee04dbf45e080844657 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Thu, 13 Aug 2026 12:14:33 -0700 Subject: [PATCH] fix: forward include_disabled through cron.manage list (#85566) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cronjob(action=list) defaults to include_disabled=False, so pausing a job makes it vanish from any ws-driven UI's next refresh — an enable/disable toggle reads as silent deletion (reported against the Hermes-Bot-Mode routines pane). Forward the flag from params. --- tui_gateway/methods_tools.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tui_gateway/methods_tools.py b/tui_gateway/methods_tools.py index dc12130c6fd30..aae1f295ad3f6 100644 --- a/tui_gateway/methods_tools.py +++ b/tui_gateway/methods_tools.py @@ -1633,7 +1633,17 @@ def _(rid, params: dict) -> dict: from tools.cronjob_tools import cronjob if action == "list": - return _ok(rid, json.loads(cronjob(action="list"))) + # Paused jobs are excluded by default, which reads as deletion in + # any UI with an enable/disable toggle — forward the flag. + return _ok( + rid, + json.loads( + cronjob( + action="list", + include_disabled=is_truthy_value(params.get("include_disabled", False)), + ) + ), + ) if action == "add": return _ok( rid,