Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
Automation runs recorded as skipped in cron.runs are projected as successful/Completed in the generic Tasks ledger.
Steps to reproduce
- Run an isolated automation whose runner returns
status: "skipped"with a reason, such as an unavailable configured local model endpoint. - Query
cron.runsfor that job. - Query
tasks.listfor the corresponding automation task. - Observe that the same durable run is
skippedin cron history butcompletedin Tasks.
Expected behavior
cron.runs should preserve the cron-specific skipped result. Because the generic Task status vocabulary has no skipped state, Tasks should show the run as failed with the authoritative skip reason. Only cron ok should project as task success.
Actual behavior
The cron-to-task projector maps both ok and skipped to task succeeded, which Gateway and Control UI render as green Completed. A parallel no-history finalization path repeats the same mapping and drops skip reasons.
OpenClaw version
Current main at 727a4a621a2e28049bf9d78c2720198e1ba73fba.
Operating system
macOS 26.6.1
Install method
Source checkout using the repository test wrappers.
Model
Not model-specific.
Provider / routing chain
Not provider-specific.
Additional provider/model setup details
The defect is in the internal cron-to-task status projection after the runner has already produced a terminal result.
Logs
Expected task status: failed
Received task status: succeeded
Cron run detail/history status: skipped
Screenshots, recordings, and evidence
The regression is reproduced through the real SQLite task ledger and an isolated Gateway RPC path. The Gateway proof observes cron.runs: skipped and tasks.list: completed for the same run before the repair.
Impact and severity
Affected: operators using Tasks, the Control UI task rail, or task status summaries for automation runs.
Severity: medium. The automation did not run successfully, but the task is shown as successful.
Frequency: every cron terminal result classified as skipped.
Consequence: operators can miss unavailable-provider, preflight, or other skip reasons because Tasks presents the run as completed.
Additional information
The canonical repair is net-negative production code: map only cron ok to task success, keep timeout/cancellation/quiet-trigger semantics unchanged, and reuse the canonical projector in no-history finalization while preserving the skip reason.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Aug 14, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 14, 2026, 2:46 PM ET / 18:46 UTC.
Summary
Current main still projects skipped cron runs as successful generic tasks. The linked open PR is the focused canonical repair, and the protected
maintainerlabel requires explicit maintainer handling rather than closing this issue.Reproducibility: yes. —current main has two direct projection paths that map cron
skippedto generic success, and existing regression coverage demonstrates the mismatched task/history states.Next step
The open linked PR already owns this focused repair, so dispatching another fix lane would duplicate active work.
Review details
Best possible solution:
Review and land the linked repair so only cron
okbecomes generic task success, while skipped outcomes retain their authoritative reason across both terminal paths.Do we have a high-confidence way to reproduce the issue?
Yes—current main has two direct projection paths that map cron
skippedto generic success, and existing regression coverage demonstrates the mismatched task/history states.Is this the best way to solve the issue?
Yes—the linked PR’s canonical mapping approach is the narrowest repair because the generic task vocabulary has no skipped state and both terminal paths share the same invariant.
AGENTS.md: found and applied where relevant.
Codex review notes: model internal, reasoning high; reviewed against c6b339460284.
Label changes
Label changes:
P2: Skipped automation runs are consistently shown as successful in generic task views, a bounded but concrete operator-visible behavior bug.impact:other: The affected class is incorrect automation outcome classification in task summaries, outside the more specific owned impact labels.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:linked-pr-open: Current issue advisory state selects this label.clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.Label justifications:
P2: Skipped automation runs are consistently shown as successful in generic task views, a bounded but concrete operator-visible behavior bug.impact:other: The affected class is incorrect automation outcome classification in task summaries, outside the more specific owned impact labels.Evidence reviewed
What I checked:
okandskippedmap to generic tasksucceeded, directly causing the reported mismatch. (src/cron/task-run-detail.ts:267, c6b339460284)skippedtosucceededand only preserves an error forerrorstatus, dropping a skip reason. (src/cron/service/task-runs.ts:324, c6b339460284)succeededwhile its task detail and cron history remainskipped. (src/cron/service/task-runs.test.ts:449, c6b339460284)succeededascompleted, explaining why generic task consumers show a skipped run as completed. (src/gateway/server-methods/task-summary.ts:18, c6b339460284)src/cron/task-run-detail.ts:267, 493a3e46b3f2)Likely related people:
src/cron/task-run-detail.ts,src/cron/service/task-runs.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.