惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Help Net Security
Help Net Security
S
Schneier on Security
Security Latest
Security Latest
C
Cyber Attacks, Cyber Crime and Cyber Security
博客园_首页
K
Kaspersky official blog
B
Blog
雷峰网
雷峰网
MyScale Blog
MyScale Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Latest news
Latest news
J
Java Code Geeks
W
WeLiveSecurity
GbyAI
GbyAI
V
Vulnerabilities – Threatpost
S
Secure Thoughts
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 叶小钗
Engineering at Meta
Engineering at Meta
S
Security @ Cisco Blogs
罗磊的独立博客
M
MIT News - Artificial intelligence
Blog — PlanetScale
Blog — PlanetScale
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
P
Proofpoint News Feed
博客园 - 聂微东
云风的 BLOG
云风的 BLOG
N
Netflix TechBlog - Medium
D
DataBreaches.Net
S
SegmentFault 最新的问题
V
Visual Studio Blog
V
V2EX
The Register - Security
The Register - Security
N
News | PayPal Newsroom
aimingoo的专栏
aimingoo的专栏
C
Cybersecurity and Infrastructure Security Agency CISA
N
News and Events Feed by Topic
Hacker News: Ask HN
Hacker News: Ask HN
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google DeepMind News
Google DeepMind News
Webroot Blog
Webroot Blog
NISL@THU
NISL@THU
D
Darknet – Hacking Tools, Hacker News & Cyber Security

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
docs(cron): regroup notes into themed sections · openclaw/openclaw@d4bb491
vincentkoc · 2026-04-27 · via Recent Commits to openclaw:main

@@ -2,100 +2,142 @@

22

summary: "CLI reference for `openclaw cron` (schedule and run background jobs)"

33

read_when:

44

- You want scheduled jobs and wakeups

5-

- You’re debugging cron execution and logs

5+

- You are debugging cron execution and logs

66

title: "Cron"

77

---

8899

# `openclaw cron`

10101111

Manage cron jobs for the Gateway scheduler.

121213-

Related:

13+

<Tip>

14+

Run `openclaw cron --help` for the full command surface. See [Cron jobs](/automation/cron-jobs) for the conceptual guide.

15+

</Tip>

141615-

- Cron jobs: [Cron jobs](/automation/cron-jobs)

17+

## Sessions

161817-

Tip: run `openclaw cron --help` for the full command surface.

19+

`--session` accepts `main`, `isolated`, `current`, or `session:<id>`.

182019-

Note: `openclaw cron list` and `openclaw cron show <job-id>` preview the

20-

resolved delivery route. For `channel: "last"`, the preview shows whether the

21-

route resolved from the main/current session or will fail closed.

21+

<AccordionGroup>

22+

<Accordion title="Session keys">

23+

- `main` binds to the agent's main session.

24+

- `isolated` creates a fresh transcript and session id for each run.

25+

- `current` binds to the active session at creation time.

26+

- `session:<id>` pins to an explicit persistent session key.

27+

</Accordion>

28+

<Accordion title="Isolated session semantics">

29+

Isolated runs reset ambient conversation context. Channel and group routing, send/queue policy, elevation, origin, and ACP runtime binding are reset for the new run. Safe preferences and explicit user-selected model or auth overrides can carry across runs.

30+

</Accordion>

31+

</AccordionGroup>

223223-

Note: isolated `cron add` jobs default to `--announce` delivery. Use `--no-deliver` to keep

24-

output internal. `--deliver` remains as a deprecated alias for `--announce`.

33+

## Delivery

253426-

Note: isolated cron chat delivery is shared. `--announce` is runner fallback

27-

delivery for the final reply; `--no-deliver` disables that fallback but does

28-

not remove the agent's `message` tool when a chat route is available.

35+

`openclaw cron list` and `openclaw cron show <job-id>` preview the resolved delivery route. For `channel: "last"`, the preview shows whether the route resolved from the main or current session, or will fail closed.

293630-

Note: one-shot (`--at`) jobs delete after success by default. Use `--keep-after-run` to keep them.

37+

<Note>

38+

Isolated `cron add` jobs default to `--announce` delivery. Use `--no-deliver` to keep output internal. `--deliver` remains as a deprecated alias for `--announce`.

39+

</Note>

314032-

Note: `--session` supports `main`, `isolated`, `current`, and `session:<id>`.

33-

Use `current` to bind to the active session at creation time, or `session:<id>` for

34-

an explicit persistent session key.

41+

### Delivery ownership

354236-

Note: `--session isolated` creates a fresh transcript/session id for each run.

37-

Safe preferences and explicit user-selected model/auth overrides can carry, but

38-

ambient conversation context does not: channel/group routing, send/queue policy,

39-

elevation, origin, and ACP runtime binding are reset for the new isolated run.

43+

Isolated cron chat delivery is shared between the agent and the runner:

404441-

Note: for one-shot CLI jobs, offset-less `--at` datetimes are treated as UTC unless you also pass

42-

`--tz <iana>`, which interprets that local wall-clock time in the given timezone.

45+

- The agent can send directly using the `message` tool when a chat route is available.

46+

- `announce` fallback-delivers the final reply only when the agent did not send directly to the resolved target.

47+

- `webhook` posts the finished payload to a URL.

48+

- `none` disables runner fallback delivery.

434944-

Note: recurring jobs now use exponential retry backoff after consecutive errors (30s → 1m → 5m → 15m → 60m), then return to normal schedule after the next successful run.

50+

`--announce` is runner fallback delivery for the final reply. `--no-deliver` disables that fallback but does not remove the agent's `message` tool when a chat route is available.

455146-

Note: `openclaw cron run` now returns as soon as the manual run is queued for execution. Successful responses include `{ ok: true, enqueued: true, runId }`; use `openclaw cron runs --id <job-id>` to follow the eventual outcome.

52+

Reminders created from an active chat preserve the live chat delivery target for fallback announce delivery. Internal session keys may be lowercase; do not use them as a source of truth for case-sensitive provider IDs such as Matrix room IDs.

475348-

Note: `openclaw cron run <job-id>` force-runs by default. Use `--due` to keep the

49-

older "only run if due" behavior.

54+

### Failure delivery

505551-

Note: isolated cron turns suppress stale acknowledgement-only replies. If the

52-

first result is just an interim status update and no descendant subagent run is

53-

responsible for the eventual answer, cron re-prompts once for the real result

54-

before delivery.

56+

Failure notifications resolve in this order:

555756-

Note: if an isolated cron run returns only the silent token (`NO_REPLY` /

57-

`no_reply`), cron suppresses direct outbound delivery and the fallback queued

58-

summary path as well, so nothing is posted back to chat.

58+

1. `delivery.failureDestination` on the job.

59+

2. Global `cron.failureDestination`.

60+

3. The job's primary announce target (when no explicit failure destination is set).

596160-

Note: isolated cron runs prefer structured execution-denial metadata from the

61-

embedded run, then fall back to known denial markers in final output, such as

62-

`SYSTEM_RUN_DENIED`, `INVALID_REQUEST`, and approval-binding refusal phrases.

63-

`cron list` and run history surface the denial reason instead of reporting a

64-

blocked command as `ok`.

62+

<Note>

63+

Main-session jobs may only use `delivery.failureDestination` when primary delivery mode is `webhook`. Isolated jobs accept it in all modes.

64+

</Note>

656566-

Note: `cron add|edit --model ...` uses that selected allowed model for the job.

67-

If the model is not allowed, cron warns and falls back to the job's agent/default

68-

model selection instead. Configured fallback chains still apply, but a plain

69-

model override with no explicit per-job fallback list no longer appends the

70-

agent primary as a hidden extra retry target.

66+

## Scheduling

716772-

Note: isolated cron model precedence is Gmail-hook override first, then per-job

73-

`--model`, then any user-selected stored cron-session model override, then the

74-

normal agent/default selection.

68+

### One-shot jobs

756976-

Note: isolated cron fast mode follows the resolved live model selection. Model

77-

config `params.fastMode` applies by default, but a stored session `fastMode`

78-

override still wins over config.

70+

`--at <datetime>` schedules a one-shot run. Offset-less datetimes are treated as UTC unless you also pass `--tz <iana>`, which interprets the wall-clock time in the given timezone.

797180-

Note: if an isolated run throws `LiveSessionModelSwitchError`, cron persists the

81-

switched provider/model (and switched auth profile override when present) for

82-

the active run before retrying. The outer retry loop is bounded to 2 switch

83-

retries after the initial attempt, then aborts instead of looping forever.

72+

<Note>

73+

One-shot jobs delete after success by default. Use `--keep-after-run` to preserve them.

74+

</Note>

847585-

Note: failure notifications use `delivery.failureDestination` first, then

86-

global `cron.failureDestination`, and finally fall back to the job's primary

87-

announce target when no explicit failure destination is configured.

76+

### Recurring jobs

887789-

Note: retention/pruning is controlled in config:

78+

Recurring jobs use exponential retry backoff after consecutive errors: 30s, 1m, 5m, 15m, 60m. The schedule returns to normal after the next successful run.

79+80+

### Manual runs

81+82+

`openclaw cron run` returns as soon as the manual run is queued. Successful responses include `{ ok: true, enqueued: true, runId }`. Use `openclaw cron runs --id <job-id>` to follow the eventual outcome.

83+84+

<Note>

85+

`openclaw cron run <job-id>` force-runs by default. Use `--due` to keep the older "only run if due" behavior.

86+

</Note>

87+88+

## Models

89+90+

`cron add|edit --model <ref>` selects an allowed model for the job.

91+92+

<Warning>

93+

If the model is not allowed, cron warns and falls back to the job's agent or default model selection. Configured fallback chains still apply, but a plain model override with no explicit per-job fallback list no longer appends the agent primary as a hidden extra retry target.

94+

</Warning>

95+96+

### Isolated cron model precedence

97+98+

Isolated cron resolves the active model in this order:

99+100+

1. Gmail-hook override.

101+

2. Per-job `--model`.

102+

3. Stored cron-session model override (when the user selected one).

103+

4. Agent or default model selection.

104+105+

### Fast mode

106+107+

Isolated cron fast mode follows the resolved live model selection. Model config `params.fastMode` applies by default, but a stored session `fastMode` override still wins over config.

108+109+

### Live model switch retries

110+111+

If an isolated run throws `LiveSessionModelSwitchError`, cron persists the switched provider and model (and switched auth profile override when present) for the active run before retrying. The outer retry loop is bounded to two switch retries after the initial attempt, then aborts instead of looping forever.

112+113+

## Run output and denials

114+115+

### Stale acknowledgement suppression

116+117+

Isolated cron turns suppress stale acknowledgement-only replies. If the first result is just an interim status update and no descendant subagent run is responsible for the eventual answer, cron re-prompts once for the real result before delivery.

118+119+

### Silent token suppression

120+121+

If an isolated cron run returns only the silent token (`NO_REPLY` or `no_reply`), cron suppresses both direct outbound delivery and the fallback queued summary path, so nothing is posted back to chat.

122+123+

### Structured denials

124+125+

Isolated cron runs prefer structured execution-denial metadata from the embedded run, then fall back to known denial markers in final output, such as `SYSTEM_RUN_DENIED`, `INVALID_REQUEST`, and approval-binding refusal phrases.

126+127+

`cron list` and run history surface the denial reason instead of reporting a blocked command as `ok`.

128+129+

## Retention

130+131+

Retention and pruning are controlled in config:

9013291133

- `cron.sessionRetention` (default `24h`) prunes completed isolated run sessions.

92-

- `cron.runLog.maxBytes` + `cron.runLog.keepLines` prune `~/.openclaw/cron/runs/<jobId>.jsonl`.

134+

- `cron.runLog.maxBytes` and `cron.runLog.keepLines` prune `~/.openclaw/cron/runs/<jobId>.jsonl`.

9313594-

Upgrade note: if you have older cron jobs from before the current delivery/store format, run

95-

`openclaw doctor --fix`. Doctor now normalizes legacy cron fields (`jobId`, `schedule.cron`,

96-

top-level delivery fields including legacy `threadId`, payload `provider` delivery aliases) and migrates simple

97-

`notify: true` webhook fallback jobs to explicit webhook delivery when `cron.webhook` is

98-

configured.

136+

## Migrating older jobs

137+138+

<Note>

139+

If you have cron jobs from before the current delivery and store format, run `openclaw doctor --fix`. Doctor normalizes legacy cron fields (`jobId`, `schedule.cron`, top-level delivery fields including legacy `threadId`, payload `provider` delivery aliases) and migrates simple `notify: true` webhook fallback jobs to explicit webhook delivery when `cron.webhook` is configured.

140+

</Note>

99141100142

## Common edits

101143

@@ -137,21 +179,9 @@ openclaw cron add \

137179138180

`--light-context` applies to isolated agent-turn jobs only. For cron runs, lightweight mode keeps bootstrap context empty instead of injecting the full workspace bootstrap set.

139181140-

Delivery ownership note:

141-142-

- Isolated cron chat delivery is shared. The agent can send directly with the

143-

`message` tool when a chat route is available.

144-

- `announce` fallback-delivers the final reply only when the agent did not send

145-

directly to the resolved target. `webhook` posts the finished payload to a URL.

146-

`none` disables runner fallback delivery.

147-

- Reminders created from an active chat preserve the live chat delivery target

148-

for fallback announce delivery. Internal session keys may be lowercase; do not

149-

use them as a source of truth for case-sensitive provider IDs such as Matrix

150-

room IDs.

151-152182

## Common admin commands

153183154-

Manual run:

184+

Manual run and inspection:

155185156186

```bash

157187

openclaw cron list

@@ -161,10 +191,9 @@ openclaw cron run <job-id> --due

161191

openclaw cron runs --id <job-id> --limit 50

162192

```

163193164-

`cron runs` entries include delivery diagnostics with the intended cron target,

165-

the resolved target, message-tool sends, fallback use, and delivered state.

194+

`cron runs` entries include delivery diagnostics with the intended cron target, the resolved target, message-tool sends, fallback use, and delivered state.

166195167-

Agent/session retargeting:

196+

Agent and session retargeting:

168197169198

```bash

170199

openclaw cron edit <job-id> --agent ops

@@ -182,14 +211,6 @@ openclaw cron edit <job-id> --no-best-effort-deliver

182211

openclaw cron edit <job-id> --no-deliver

183212

```

184213185-

Failure-delivery note:

186-187-

- `delivery.failureDestination` is supported for isolated jobs.

188-

- Main-session jobs may only use `delivery.failureDestination` when primary

189-

delivery mode is `webhook`.

190-

- If you do not set any failure destination and the job already announces to a

191-

channel, failure notifications reuse that same announce target.

192-193214

## Related

194215195216

- [CLI reference](/cli)