From a364390dab3bb5050d639e94c4ed1b4c4ed77fe3 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Thu, 13 Aug 2026 13:14:57 -0700 Subject: [PATCH] feat: forward repeat through cron.manage add (#85602) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cronjob(action=create) has supported a repeat cap since the tool existed, but the ws handler dropped the param — UIs building on cron.manage could not create run-N-times jobs. Forward it (digit strings accepted, None keeps schedule-kind defaults). One-shot relative schedules (bare 30m/2h) already flow through the schedule string untouched. --- tui_gateway/methods_tools.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tui_gateway/methods_tools.py b/tui_gateway/methods_tools.py index aae1f295ad..22d3d3f1de 100644 --- a/tui_gateway/methods_tools.py +++ b/tui_gateway/methods_tools.py @@ -1653,6 +1653,14 @@ def _(rid, params: dict) -> dict: name=jid, schedule=params.get("schedule", ""), prompt=params.get("prompt", ""), + # Optional repeat cap ("run N times"); None keeps the + # schedule-kind default (once for one-shot, forever + # for recurring). + repeat=( + int(params["repeat"]) + if str(params.get("repeat", "")).strip().isdigit() + else None + ), ) ), )