feat(cron): expose --fallbacks option on cron create and edit commands#94918
feat(cron): expose --fallbacks option on cron create and edit commands#94918zhangqueping wants to merge 1 commit into
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close: this PR is superseded by the open, clean, proof-sufficient canonical PR for the same cron fallback CLI feature, and this branch leaves the clear-fallback path unsupported outside the CLI layer. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Close this branch and keep #93369, or an equivalent complete patch, as the landing path for CLI flags, nullable clear semantics, docs, tests, and proof. So I’m closing this here and keeping the remaining discussion on #93369. Review detailsBest possible solution: Close this branch and keep #93369, or an equivalent complete patch, as the landing path for CLI flags, nullable clear semantics, docs, tests, and proof. Do we have a high-confidence way to reproduce the issue? Yes at source level for the patch defect: this branch sends Is this the best way to solve the issue? No. Exposing the existing payload field in the cron CLI is the right layer, but this branch is too narrow because clear semantics require protocol, normalization, service, docs, tests, and proof that the canonical PR already includes. Security review: Security review cleared: The diff only changes cron CLI option parsing and does not touch dependencies, workflows, lockfiles, package metadata, secrets, permissions, or code-download paths. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against c4d1f37d3326. |
Real behavior proofThe cron add/create: The parsed fallbacks are passed through to the existing |
- The fallbacks field already exists in CronAgentTurnPayloadFields but was never exposed via CLI - Add --fallbacks <models> (comma-separated) to cron add/create - Add --fallbacks <models> and --clear-fallbacks to cron edit Fixes openclaw#90302
4295712 to
d826819
Compare
Summary
The
fallbacksfield already exists inCronAgentTurnPayloadFields(allowing per-job fallback model overrides) but was never exposed via the CLI. This adds--fallbacks <models>(comma-separated model list) toopenclaw cron createandopenclaw cron edit, plus--clear-fallbackstocron edit.Fixes #90302
Tests and validation
The
fallbacksfield is already handled by the cron runtime — this only exposes the existing field through the CLI option.