Cron: suppress fallback main summary for delivery-target errors (openclaw#24074) thanks @Takhoffman

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

Co-authored-by: Takhoffman <781889+Takhoffman@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
This commit is contained in:
Tak Hoffman
2026-02-22 20:24:08 -06:00
committed by GitHub
parent 457835b104
commit a54dc7fe80
5 changed files with 39 additions and 15 deletions

View File

@@ -737,7 +737,9 @@ export async function executeJobCore(
// See: https://github.com/openclaw/openclaw/issues/15692
const summaryText = res.summary?.trim();
const deliveryPlan = resolveCronDeliveryPlan(job);
if (summaryText && deliveryPlan.requested && !res.delivered) {
const suppressMainSummary =
res.status === "error" && res.errorKind === "delivery-target" && deliveryPlan.requested;
if (summaryText && deliveryPlan.requested && !res.delivered && !suppressMainSummary) {
const prefix = "Cron";
const label =
res.status === "error" ? `${prefix} (error): ${summaryText}` : `${prefix}: ${summaryText}`;