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

推荐订阅源

V
Visual Studio Blog
爱范儿
爱范儿
GbyAI
GbyAI
博客园 - 叶小钗
Last Week in AI
Last Week in AI
Jina AI
Jina AI
Microsoft Security Blog
Microsoft Security Blog
云风的 BLOG
云风的 BLOG
C
Check Point Blog
H
Help Net Security
P
Proofpoint News Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
大猫的无限游戏
大猫的无限游戏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
B
Blog RSS Feed
Y
Y Combinator Blog
U
Unit 42
T
Tailwind CSS Blog
MyScale Blog
MyScale Blog
N
Netflix TechBlog - Medium
S
SegmentFault 最新的问题
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

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
fix: recover stale cron task records · openclaw/openclaw@...
steipete · 2026-04-26 · via Recent Commits to openclaw:main

@@ -25,8 +25,12 @@ Not every agent run creates a task. Heartbeat turns and normal interactive chat

2525

- Tasks are **records**, not schedulers — cron and heartbeat decide _when_ work runs, tasks track _what happened_.

2626

- ACP, subagents, all cron jobs, and CLI operations create tasks. Heartbeat turns do not.

2727

- Each task moves through `queued → running → terminal` (succeeded, failed, timed_out, cancelled, or lost).

28-

- Cron tasks stay live while the cron runtime still owns the job; chat-backed CLI tasks stay live only while their owning run context is still active.

29-

- Completion is push-driven: detached work can notify directly or wake the requester session/heartbeat when it finishes, so status polling loops are usually the wrong shape.

28+

- Cron tasks stay live while the cron runtime still owns the job; if the

29+

in-memory runtime state is gone, task maintenance first checks durable cron

30+

run history before marking a task lost.

31+

- Completion is push-driven: detached work can notify directly or wake the

32+

requester session/heartbeat when it finishes, so status polling loops are

33+

usually the wrong shape.

3034

- Isolated cron runs and subagent completions best-effort clean up tracked browser tabs/processes for their child session before final cleanup bookkeeping.

3135

- Isolated cron delivery suppresses stale interim parent replies while descendant subagent work is still draining, and it prefers final descendant output when that arrives before delivery.

3236

- Completion notifications are delivered directly to a channel or queued for the next heartbeat.

@@ -143,8 +147,14 @@ Agent run completion is authoritative for active task records. A successful deta

143147144148

- ACP tasks: backing ACP child session metadata disappeared.

145149

- Subagent tasks: backing child session disappeared from the target agent store.

146-

- Cron tasks: the cron runtime no longer tracks the job as active.

147-

- CLI tasks: isolated child-session tasks use the child session; chat-backed CLI tasks use the live run context instead, so lingering channel/group/direct session rows do not keep them alive. Gateway-backed `openclaw agent` runs also finalize from their run result, so completed runs do not sit active until the sweeper marks them `lost`.

150+

- Cron tasks: the cron runtime no longer tracks the job as active and durable

151+

cron run history does not show a terminal result for that run. Offline CLI

152+

audit does not treat its own empty in-process cron runtime state as authority.

153+

- CLI tasks: isolated child-session tasks use the child session; chat-backed

154+

CLI tasks use the live run context instead, so lingering

155+

channel/group/direct session rows do not keep them alive. Gateway-backed

156+

`openclaw agent` runs also finalize from their run result, so completed runs

157+

do not sit active until the sweeper marks them `lost`.

148158149159

## Delivery and notifications

150160

@@ -236,7 +246,7 @@ openclaw tasks notify <lookup> state_changes

236246

Reconciliation is runtime-aware:

237247238248

- ACP/subagent tasks check their backing child session.

239-

- Cron tasks check whether the cron runtime still owns the job.

249+

- Cron tasks check whether the cron runtime still owns the job, then recover terminal status from persisted cron run logs/job state before falling back to `lost`. Only the Gateway process is authoritative for the in-memory cron active-job set; offline CLI audit uses durable history but does not mark a cron task lost solely because that local Set is empty.

240250

- Chat-backed CLI tasks check the owning live run context, not just the chat session row.

241251242252

Completion cleanup is also runtime-aware: