Repository navigation
fix(cron): persist delivery suppression reason and log strict failures - #130811
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 27, 2026 07:57
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 28, 2026
This was referenced Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Two recording gaps in cron delivery, one doctrine: record facts where they happen.
deliverySuppressionReasonwas typed, set, and then dropped. The isolated runner records why a delivery was intentionally suppressed (e.g. a<silent>reply) indelivery-dispatch.ts, buttimer-execution.tsforwarded the run result field-by-field and omitted it — so an intentional silent reply and an unexplained non-delivery were indistinguishable in job state, run history, the finished event, and every operator surface.status:"error"silently; only the bestEffort path logged.Why This Change Was Made
The reason now follows the exact threading precedent #95419 established for
deliveryError: isolated-run result → timer execution → resolved delivery state → persisted job state → scheduled/manual finished events → task-backed run history → job API projections and cron plugin hooks. Later outcomes and restart interruption repair clear stale reasons; finalized-run recovery restores recorded ones. Storage stayed additive-optional: the field rides the existingstate_jsoncolumn and task-detail JSON codec — no DDL, no columns, no migrations, no schema-version change. Protocol schemas gainedType.Optional(Type.String())on the three closed objects (additive-first), with generated Swift parity verified byscripts/protocol-gen-swift.ts --check; a direct schema probe accepted all four reasons and older records with the field absent. The strict-path failure now uses the existing single error-log call, labelledrequiredvsbestEffort. Explicitly untouched: the intentional post-delivery ok-downgrade (#94058), completion policy/required-delivery defaults, and failure-alert routing (those are separate product decisions).LOC: handwritten production +57/−4; generated Swift +8; tests +103; docs +1.
User Impact
Run logs,
cron runs, the finished event, and the job API now say why a cron run delivered nothing when it was intentional — and operators tailing logs see strict delivery failures the moment they happen.Evidence
origin/main.