Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(cron): clarify agent-turn can use all tools in description

Jiang Bohanb5eca456ab35
diff --git a/src/agent/tools/cron/cron-tool.ts b/src/agent/tools/cron/cron-tool.ts
index a8d97e85e2..1fd7d70aab 100644
--- a/src/agent/tools/cron/cron-tool.ts
+++ b/src/agent/tools/cron/cron-tool.ts
@@ -157,11 +157,14 @@ SCHEDULE TYPES (schedule.kind):
{ "kind": "cron", "expr": "0 9 * * *", "tz": "Asia/Shanghai" }
PAYLOAD TYPES (payload.kind):
-- "system-event": Injects text as system event into session
+- "system-event": Injects text into main session (like a reminder, triggers main agent to respond)
{ "kind": "system-event", "text": "<message>" }
-- "agent-turn": Runs agent with message (isolated sessions only)
+- "agent-turn": Spawns an isolated agent that can use ALL tools (exec, write, web_fetch, etc.) to autonomously complete a task
{ "kind": "agent-turn", "message": "<prompt>", "timeoutSeconds": 300 }
+USE "agent-turn" when the job needs to perform actions (run commands, write files, fetch data, etc.).
+USE "system-event" when the job only needs to remind/notify the user in the current chat.
+
CRITICAL CONSTRAINTS:
- sessionTarget="main" REQUIRES payload.kind="system-event"
- sessionTarget="isolated" REQUIRES payload.kind="agent-turn"