This commit is contained in:
Matthias Röder 2026-01-30 08:28:40 -08:00 committed by GitHub
commit 61fb4392de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 <channel> --to <dest> if you want proactive message delivery.",
);
}
const isolation =
sessionTarget === "isolated"
? {