From f88c4ada686c130ae6656a6d72cdb1df49998530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20R=C3=B6der?= Date: Mon, 26 Jan 2026 14:55:27 +0100 Subject: [PATCH] fix(cron): warn when isolated job won't deliver output When creating an isolated cron job with --message but without --deliver or --to, the job runs but the agent output goes nowhere. This is a common mistake that's hard to debug. Add a warning at job creation time so users know they need to add --deliver --channel --to for proactive message delivery. Co-Authored-By: Claude Opus 4.5 --- src/cli/cron-cli/register.cron-add.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/cli/cron-cli/register.cron-add.ts b/src/cli/cron-cli/register.cron-add.ts index ee311ac43..d2ced3e16 100644 --- a/src/cli/cron-cli/register.cron-add.ts +++ b/src/cli/cron-cli/register.cron-add.ts @@ -177,6 +177,19 @@ export function registerCronAddCommand(cron: Command) { throw new Error("Isolated jobs require --message (agentTurn)."); } + // Warn if isolated job won't deliver output anywhere + if ( + sessionTarget === "isolated" && + payload.kind === "agentTurn" && + !payload.deliver && + !payload.to + ) { + defaultRuntime.error( + "warning: isolated job has --message but no --deliver or --to; agent output will not be sent.\n" + + "Add --deliver --channel --to if you want proactive message delivery.", + ); + } + const isolation = sessionTarget === "isolated" ? {