You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On `cron edit`, removes the per-job fallback override so the job follows configured fallback precedence. Cannot be combined with `--fallbacks`.
165
+
</ParamField>
160
166
<ParamFieldpath="--clear-model"type="boolean">
161
167
On `cron edit`, removes the per-job model override so the job follows normal cron model-selection precedence (a stored cron-session override if set, otherwise the agent/default model). Cannot be combined with `--model`.
162
168
</ParamField>
@@ -478,7 +484,7 @@ Model override note:
478
484
- API `cron.update` payload patches can set `model: null` to clear a stored job model override.
479
485
-`openclaw cron edit <job-id> --clear-model` clears that override from the CLI (same effect as the `model: null` patch) and cannot be combined with `--model`.
480
486
- Configured fallback chains still apply because cron `--model` is a job primary, not a session `/model` override.
481
-
-Payload `fallbacks` replaces configured fallbacks for that job; `fallbacks: []` disables fallback and makes the run strict.
487
+
-`openclaw cron add|edit --fallbacks ...` sets payload `fallbacks`, replacing configured fallbacks for that job; `--fallbacks ""` disables fallback and makes the run strict. `openclaw cron edit <job-id> --clear-fallbacks` clears the per-job override.
482
488
- A plain `--model` with no explicit or configured fallback list does not fall through to the agent primary as a silent extra retry target.
Copy file name to clipboardExpand all lines: docs/cli/cron.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,7 +170,7 @@ Use `--due` when you want the manual command to run only if the job is currently
170
170
171
171
## Models
172
172
173
-
`cron add|edit --model <ref>` selects an allowed model for the job. `cron edit <job-id> --clear-model` removes the per-job model override so the job follows normal cron model-selection precedence (a stored cron-session override if present, otherwise the agent/default model); it cannot be combined with `--model`.
173
+
`cron add|edit --model <ref>` selects an allowed model for the job. `cron add|edit --fallbacks <list>` sets per-job fallback models, for example `--fallbacks openrouter/gpt-4.1-mini,openai/gpt-5`; pass `--fallbacks ""` for a strict run with no fallbacks. `cron edit <job-id> --clear-fallbacks` removes the per-job fallback override. `cron edit <job-id> --clear-model` removes the per-job model override so the job follows normal cron model-selection precedence (a stored cron-session override if present, otherwise the agent/default model); it cannot be combined with `--model`.
174
174
175
175
<Warning>
176
176
If the model is not allowed or cannot be resolved, cron fails the run with an explicit validation error instead of falling back to the job's agent or default model selection.
@@ -180,7 +180,7 @@ Cron `--model` is a **job primary**, not a chat-session `/model` override. That
180
180
181
181
- Configured model fallbacks still apply when the selected job model fails.
182
182
- Per-job payload `fallbacks` replaces the configured fallback list when present.
183
-
- An empty per-job fallback list (`fallbacks: []` in the job payload/API) makes the cron run strict.
183
+
- An empty per-job fallback list (`--fallbacks ""` or `fallbacks: []` in the job payload/API) makes the cron run strict.
184
184
- When a job has `--model` but no fallback list is configured, OpenClaw passes an explicit empty fallback override so the agent primary is not appended as a hidden retry target.
185
185
- Local-provider preflight checks walk configured fallbacks before marking a cron run `skipped`.
0 commit comments