Skip to content

The agent that grows with you

fix: forward include_disabled through cron.manage list (#85566)

Tekniumdcbfc79f8d80
diff --git a/tui_gateway/methods_tools.py b/tui_gateway/methods_tools.py
index dc12130c6fd..aae1f295ad3 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,