fix(cron): enable completion direct send for text-only announce delivery (#29151)

This commit is contained in:
Dennis Goldfinger
2026-02-28 18:09:07 +01:00
committed by GitHub
parent fe9a7c4082
commit 3096837238
4 changed files with 18 additions and 1 deletions

View File

@@ -309,6 +309,10 @@ export async function dispatchCronDelivery(
timeoutMs: params.timeoutMs,
cleanup: params.job.deleteAfterRun ? "delete" : "keep",
roundOneReply: synthesizedText,
// Cron output is a finished completion message: send it directly to the
// target channel via the completion-direct-send path rather than injecting
// a trigger message into the (likely idle) main agent session.
expectsCompletionMessage: true,
// Keep delivery outcome truthful for cron state: if outbound send fails,
// announce flow must report false so caller can apply best-effort policy.
bestEffortDeliver: false,