Skip to content

The agent that grows with you

feat: forward repeat through cron.manage add (#85602)

Tekniuma364390dab3b
diff --git a/tui_gateway/methods_tools.py b/tui_gateway/methods_tools.py
index aae1f295ad3..22d3d3f1de7 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
+ ),
)
),
)