Repository navigation
fix(cron): keep implicit announcements when disabling best-effort - #101027
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 832be19731
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| ### Fixes | ||
|
|
||
| - **Cron edit delivery:** preserve each job's implicit delivery mode when applying partial delivery updates, so disabling best-effort delivery no longer turns detached job announcements off. (#100846) Thanks @machine3at. |
There was a problem hiding this comment.
Remove the direct changelog entry
This adds a normal fix note directly to CHANGELOG.md, but the root AGENTS.md guideline says CHANGELOG.md is release-only and must not be edited for normal PRs or direct main fixes; release generation derives these notes from commit/PR metadata. Leaving this entry can make the next release-generation pass duplicate or conflict with the generated fix note, so the release-note context should stay in the commit/PR body instead.
Useful? React with 👍 / 👎.
|
Maintainer follow-up is land-ready at exact head
This closes the post-merge edge case discovered while auditing #100846; no config, protocol, or documented behavior surface changed. |
|
Merged via squash.
|
Related: #100846
What Problem This Solves
Fixes an issue where users disabling best-effort delivery on an older detached cron job could silently disable the job's completion announcement when that job had no stored delivery override.
Why This Change Was Made
Partial delivery updates now preserve the job's already-resolved implicit delivery mode before materializing a delivery object. Clear-only updates remain absent, and main-session jobs retain their non-delivering default. This fixes the same invariant for every partial delivery patch instead of teaching the CLI another copy of cron delivery policy.
User Impact
openclaw cron edit <id> --no-best-effort-deliver, including when combined with a message edit, no longer turns implicit detached-job announcements off. Enabling best-effort still retains its documented announce compatibility behavior.Evidence
git diff --checkand targeted oxfmt passed.AI-assisted: implementation and review performed with Codex. No transcript attached because the working session also contains unrelated maintainer operations.