Skip to content

fix(cron): keep implicit announcements when disabling best-effort - #101027

Merged
steipete merged 1 commit into
mainfrom
codex/cron-preserve-implicit-delivery
Jul 6, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/cron-preserve-implicit-delivery

Conversation

@steipete

@steipete steipete commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

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

  • Blacksmith Testbox: 135 focused cron service and CLI tests passed.
  • Source-blind CLI/Gateway contract: isolated and main jobs, combined message edit, and both best-effort directions exercised against an ephemeral Gateway.
  • Fresh GPT-5.5 autoreview: no accepted or actionable findings.
  • git diff --check and targeted oxfmt passed.

AI-assisted: implementation and review performed with Codex. No transcript attached because the working session also contains unrelated maintainer operations.

@steipete
steipete requested a review from a team as a code owner July 6, 2026 16:58
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Jul 6, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread CHANGELOG.md

### 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@steipete

steipete commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Maintainer follow-up is land-ready at exact head 832be197318075e88fddfd75c1b00a2f41f150f5.

  • Best-fix review: partial delivery patches preserve the job's resolved implicit mode at the cron service boundary; explicit modes, absent clear-only patches, and main-session cleanup remain unchanged.
  • Blacksmith Testbox: 135 focused cron service and CLI tests passed.
  • Source-blind live Gateway contract: five clauses passed across migrated isolated and main jobs, disable-only, disable plus message edit, and enable compatibility.
  • Targeted oxfmt and git diff --check passed.
  • Fresh GPT-5.5 autoreview reported no accepted or actionable findings.
  • Exact-head hosted CI: https://github.com/openclaw/openclaw/actions/runs/28808685177

This closes the post-merge edge case discovered while auditing #100846; no config, protocol, or documented behavior surface changed.

@steipete
steipete merged commit a34b8a8 into main Jul 6, 2026
113 of 115 checks passed
@steipete
steipete deleted the codex/cron-preserve-implicit-delivery branch July 6, 2026 17:12
@steipete

steipete commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Development

Successfully merging this pull request may close these issues.

1 participant