Merge f88c4ada68 into 09be5d45d5
This commit is contained in:
commit
61fb4392de
@ -177,6 +177,19 @@ export function registerCronAddCommand(cron: Command) {
|
|||||||
throw new Error("Isolated jobs require --message (agentTurn).");
|
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 =
|
const isolation =
|
||||||
sessionTarget === "isolated"
|
sessionTarget === "isolated"
|
||||||
? {
|
? {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user