fix: silence cron exec completion noise

This commit is contained in:
Mark Goldenstein
2026-04-24 20:56:34 -07:00
committed by Peter Steinberger
parent 017252e4f8
commit bd60df3e53
10 changed files with 212 additions and 3 deletions

View File

@@ -53,6 +53,7 @@ export type ExecuteNodeHostCommandParams = {
approvalRunningNoticeMs: number;
warnings: string[];
notifySessionKey?: string;
notifyOnExit?: boolean;
trustedSafeBinDirs?: ReadonlySet<string>;
};
@@ -228,7 +229,8 @@ export async function executeNodeHostCommand(
? "allow-once"
: (approvalDecision ?? undefined),
runId: runId ?? undefined,
suppressNotifyOnExit: suppressNotifyOnExit === true ? true : undefined,
suppressNotifyOnExit:
suppressNotifyOnExit === true || params.notifyOnExit === false ? true : undefined,
},
idempotencyKey: crypto.randomUUID(),
}) satisfies Record<string, unknown>;