fix(cron): persist delivered flag in job state to surface delivery failures (openclaw#19174) thanks @simonemacario

Verified:
- pnpm build
- pnpm check
- pnpm test:macmini

Co-authored-by: simonemacario <2116609+simonemacario@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
This commit is contained in:
Simone Macario
2026-02-22 02:47:29 +08:00
committed by GitHub
parent 51149fcaf1
commit 09d5f508b1
8 changed files with 230 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ export type CronRunLogEntry = {
status?: CronRunStatus;
error?: string;
summary?: string;
delivered?: boolean;
sessionId?: string;
sessionKey?: string;
runAtMs?: number;
@@ -127,6 +128,9 @@ export async function readCronRunLogEntries(
}
: undefined,
};
if (typeof obj.delivered === "boolean") {
entry.delivered = obj.delivered;
}
if (typeof obj.sessionId === "string" && obj.sessionId.trim().length > 0) {
entry.sessionId = obj.sessionId;
}