Skip to content

fix: list every cron job from one consistent Gateway snapshot - #113805

Merged
steipete merged 2 commits into
mainfrom
codex/fix-autoqa-cron-paged-list-show-a1cc
Jul 25, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/fix-autoqa-cron-paged-list-show-a1cc

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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 show selected 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.get before matching job names, restart changed or shrinking snapshots instead of combining their pages, reject incomplete or oversized modern pages, and explicitly probe cron.get before permitting the shipped protocol-v4 fallback. No flags or protocol changes are needed.

User Impact

openclaw cron list displays all scheduled jobs, including jobs beyond entry 200; normal table and JSON output agree; openclaw cron show consistently 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

  • Real production cron.list and cron.get Gateway 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.
  • Real snapshot changes, shrinking/clamped snapshots, repeated churn, complete 200 + 1 pagination, explicitly detected protocol-v4 inventory (including empty terminal pages), mixed-version routes, terminal cursor validation, truncated and oversized pages, modern unversioned page rejection, exact ID/name collisions, late-page name lookup, transport failures, and a stable 10,001-job safety bound covered by 21 actual-handler regression tests. Independent-review findings were reproduced as real-Gateway failing regressions before the implementation was fixed.
  • Existing shipped older-Gateway cron edit fallback remains green.
  • Blacksmith Testbox: 419/419 tests pass across 11 focused CLI, live Gateway server, Gateway method, cron service, protocol/schema, protocol validator, and doctor test files.
  • Five consecutive fresh actual-Gateway churn, compatibility, and malformed-page stress rounds: 105/105 pass.
  • Canonical formatting for all seven changed paths, production TypeScript, and test TypeScript: pass.
  • Complete canonical 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.
  • Fresh exact-head independent high-effort code review: no actionable findings; 0.98 confidence.
  • Base reproduction: a1cc41acbcdd285a7cdb423bdfe45ef06b2f97cb.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: L maintainer Maintainer-authored PR labels Jul 25, 2026
@steipete
steipete merged commit 54df949 into main Jul 25, 2026
184 of 186 checks passed
@steipete
steipete deleted the codex/fix-autoqa-cron-paged-list-show-a1cc branch July 25, 2026 19:52
@steipete

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

cli CLI command changes maintainer Maintainer-authored PR size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant