fix(agents): prefer cron for deferred follow-ups (#60811)

* fix(agents): prefer cron for deferred follow-ups

* fix(agents): gate cron scheduling guidance

* fix(changelog): add scheduling guidance note

* fix(agents): restore exec approval agent hint
This commit is contained in:
Vincent Koc
2026-04-04 21:11:27 +09:00
committed by GitHub
parent d46eabb010
commit b742909dca
14 changed files with 164 additions and 25 deletions

View File

@@ -120,7 +120,7 @@ describe("tools product copy", () => {
label: "Cron",
description: "Schedule and manage cron jobs.",
rawDescription:
"Manage Gateway cron jobs and send wake events.\n\nACTIONS:\n- status: Check cron scheduler status\nJOB SCHEMA:\n{ ... }",
'Manage Gateway cron jobs and send wake events. Use this for reminders, "check back later" requests, delayed follow-ups, and recurring tasks. Do not emulate scheduling with exec sleep or process polling.\n\nACTIONS:\n- status: Check cron scheduler status\nJOB SCHEMA:\n{ ... }',
source: "core",
},
],
@@ -130,7 +130,9 @@ describe("tools product copy", () => {
{ verbose: true },
);
expect(text).toContain("Cron - Manage Gateway cron jobs and send wake events.");
expect(text).toContain(
'Cron - Manage Gateway cron jobs and send wake events. Use this for reminders, "check back later" requests, delayed follow-ups, and recurring tasks. Do not emulate scheduling with exec sleep or process polling.',
);
expect(text).not.toContain("ACTIONS:");
expect(text).not.toContain("JOB SCHEMA:");
});