Skip to content

fix(cron): deliver explicit failure alerts for best-effort jobs - #115762

Merged
steipete merged 1 commit into
mainfrom
codex/fix-cron-explicit-failure-alert-89847
Jul 29, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-cron-explicit-failure-alert-89847

Conversation

@steipete-oai

Copy link
Copy Markdown
Contributor

Closes #89847.

What Problem This Solves

Fixes an issue where operators who explicitly configure a cron failure alert would receive no notification when an isolated job stalls in runtime-plugins and the job's normal result delivery uses bestEffort: true.

Why This Change Was Made

Best-effort result delivery should continue suppressing inherited global failure alerts, but must not override a separately and explicitly configured per-job failure alert. Keep the decision in the cron failure-alert owner, preserve the existing global-alert, target-routing, cooldown, and opt-out contracts, and exercise the existing real scheduler watchdog rather than guessing from the report.

User Impact

A cron job's explicitly configured Telegram or other channel failure notification now fires after an isolated startup/runtime-plugin stall even when its ordinary announcement is best-effort. Operators who have not configured a job-specific alert keep the existing quiet behavior.

Evidence

  • Reproduced the reported exact runtime_plugins stall, bestEffort: true, job-specific Telegram alert, and real 60-second cron watchdog against production onTimer: before the fix the configured alert callback is called zero times; after the fix it is called exactly once with the configured Telegram target and the runtime-plugins error.
  • Existing unchanged src/cron/service.failure-alert.test.ts independently confirms inherited global alerts remain suppressed for best-effort jobs.
  • Fresh trusted Blacksmith Testbox on repaired main: 139 tests passed in all 8 relevant cron suites, including watchdogs, real service/store startup and replay, completion delivery, Telegram failure-route/account selection, stream triggers, and failure-alert codec.
  • Full remote corepack pnpm check:changed: passed, including all production/full-tree/script Knip dead-export checks, core and test typechecking, formatting, lint, plugin boundaries, SQLite guards, runtime import cycles, and security guards.
  • Fresh structured gpt-5.6-sol xhigh commit autoreview: clean; no accepted/actionable findings.

This change does not add configuration, change failure-status enums, or attempt to add Telegram topic configuration; those are distinct feature decisions.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Jul 29, 2026
@steipete
steipete merged commit f418a07 into main Jul 29, 2026
122 of 124 checks passed
@steipete
steipete deleted the codex/fix-cron-explicit-failure-alert-89847 branch July 29, 2026 08:39
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 29, 2026
* origin/main:
  fix(zalo): stop provider startup after gateway shutdown (#115763)
  fix(agents): bound completed background process retention (#115760)
  fix(plugins): bound hook execution and retire stale registrations (#115695)
  fix(ui): collapse custodian startup error gap (#115720)
  fix(gateway): reload edited hook transforms (#107875)
  refactor: centralize channel streaming config hints (#115739)
  fix(msteams): finalize sent replies after dispatch (#82354)
  fix(cron): deliver explicitly configured failure alerts (#115762)
  fix(hooks): resolve inbound claim conversation once (#115491)
  refactor: retire legacy provider and secret paths (#115655)
  fix(memory): reject malformed QMD result entries (#115705)
  fix(diagnostics): keep internal thinking out of telemetry [AI] (#115261)
  fix(ui): localize remaining control surfaces (#115730)
  fix(gateway): prevent model owner mismatch after plugin activation (#115747)
  fix(agents): run reply hooks for restart recovery (#115711)
  fix(cron): initialize detached hook run sessions (#115765)
  fix(ios): keep stop available for staged voice notes (#115744)
  fix(doctor): preserve config includes during cleanup (#115723)
  fix(memory): keep dreaming consolidation within project scope (#115721)
  fix(discord): keep tool rows under verbose progress (#111947)

# Conflicts:
#	ui/src/pages/custodian/custodian-surface.ts
#	ui/src/styles/custodian.css
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

2 participants