Repository navigation
fix: list every cron job from one consistent Gateway snapshot - #113805
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 26, 2026
…aw#113805) * fix: list cron jobs from one complete Gateway snapshot * fix: keep cron inventory result internal --------- Co-authored-by: Peter Steinberger <[email protected]>
This was referenced Oct 29, 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
Fixes an issue where users listing more than 200 scheduled jobs would silently lose every job beyond the Gateway's first inventory page. Resolves related cases where
cron showselected another job whose name happened to equal the requested job ID, or combined pages from different scheduler snapshots while jobs changed.Why This Change Was Made
Use one typed, revision-aware, bounded Gateway inventory reader for cron listing, display, and the documented older-Gateway editing fallback. Resolve exact IDs with canonical
cron.getbefore matching job names, restart changed or shrinking snapshots instead of combining their pages, reject incomplete or oversized modern pages, and explicitly probecron.getbefore permitting the shipped protocol-v4 fallback. No flags or protocol changes are needed.User Impact
openclaw cron listdisplays all scheduled jobs, including jobs beyond entry 200; normal table and JSON output agree;openclaw cron showconsistently displays the actual requested job and delivery preview; and concurrent scheduler changes can no longer produce a mixed or truncated inventory. Editing against older Gateways remains supported.Evidence
cron.listandcron.getGateway handlers connected to the canonical cron service and 201 valid scheduled jobs. The unchanged released baseline produces 5 reproducible failing regressions and 1 passing control; the fixed implementation passes all actual-Gateway cases.cron editfallback remains green.pnpm check:changed, including all repository ratchets, plugin/API/database boundaries, production/test type-checking, import-cycle guards, and all 245 applicable lint rules: pass, exit 0.a1cc41acbcdd285a7cdb423bdfe45ef06b2f97cb.