Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
Hello,
Since 2026.6.1 cron jobs are stored in the state database (~/.openclaw/state/openclaw.sqlite). However the openclaw cron cli shows the legacy storePath:
OpenClaw 2026.6.5 (unknown) — I can't fix your code taste, but I can fix your build and your backlog.
│
◇
{
"enabled": true,
"storePath": "/home/node/.openclaw/cron/jobs.json",
"jobs": 6,
"nextWakeAtMs": 1781067600000
}
This was discovered by my claw when I asked it about the cron jobs.
This will confuse users and the agent into thinking the legacy json file is still the authoritative location for the cron job configurations.
Steps to reproduce
Run openclaw cron status
Expected behavior
storePath should reference the new state database instead of the legacy json file.
Actual behavior
Legacy json file is referenced.
OpenClaw version
2026.6.1
Operating system
Ubuntu 24.04
Install method
docker
Model
n/a
Provider / routing chain
n/a
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 9, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 9, 2026, 5:01 PM ET / 21:01 UTC.
Summary
Keep open: current main and the latest release still expose the legacy cron
storePaththroughcron.status, while the actual cron job store is already backed by the shared SQLite database.Reproducibility: yes. Source inspection shows
cron.status()returnsstate.deps.storePathand the CLI prints that response directly; runningopenclaw cron statusagainst current main should reproduce the reported legacy path.Next step
This is a narrow source-backed bug with clear files, validation, and no linked implementation PR in the provided context.
Review details
Best possible solution:
Update the cron status payload and CLI output to report the canonical SQLite-backed storage identity, keeping the logical cron store key separate from the actual database file and covering the behavior with regression tests.
Do we have a high-confidence way to reproduce the issue?
Yes. Source inspection shows
cron.status()returnsstate.deps.storePathand the CLI prints that response directly; runningopenclaw cron statusagainst current main should reproduce the reported legacy path.Is this the best way to solve the issue?
Yes. The best fix is at the cron status/reporting boundary because cron persistence already uses SQLite; changing the storage layer would address the wrong problem.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
cron.statusis a gateway/CLI JSON surface, so the fix should avoid silently removing a field that external scripts may parse; prefer explicit canonical storage reporting or carefully updatedstorePathsemantics with focused tests.Codex review notes: model gpt-5.5, reasoning high; reviewed against 21410d1c3247.
Label changes
Label changes:
P2: This is a normal-priority behavior bug in a core diagnostic command with limited blast radius but real operator and agent confusion.impact:other: The issue affects maintainer-visible diagnostic correctness for cron storage rather than data loss, security, message delivery, session state, or auth routing.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:queueable-fix: Current issue advisory state selects this label.clawsweeper:fix-shape-clear: Current issue advisory state selects this label.Label justifications:
P2: This is a normal-priority behavior bug in a core diagnostic command with limited blast radius but real operator and agent confusion.impact:other: The issue affects maintainer-visible diagnostic correctness for cron storage rather than data loss, security, message delivery, session state, or auth routing.Evidence reviewed
Acceptance criteria:
What I checked:
openclaw cron statuson 2026.6.5 returningstorePath: /home/node/.openclaw/cron/jobs.jsonafter cron storage moved to the shared SQLite state database.cron.status()still returnsstorePath: state.deps.storePath, so the gateway response exposes the logical legacy jobs path rather than the SQLite database path. (src/cron/service/ops.ts:256, 21410d1c3247)openclaw cron statuscommand prints thecron.statusgateway response directly, so the misleading field reaches users and agents without further transformation. (src/cli/cron-cli/register.cron-add.ts:37, 21410d1c3247)openOpenClawStateDatabase().dbusing the resolved store path only as a SQLite partition key. (src/cron/store.ts:64, 21410d1c3247)state/openclaw.sqlite. (src/state/openclaw-state-db.paths.ts:38, 21410d1c3247)docs/cli/cron.md. (docs/cli/cron.md:146, 21410d1c3247)Likely related people:
src/cron/service/ops.ts,src/cron/store.ts,docs/cli/cron.md)docs/automation/cron-jobs.md,docs/automation/tasks.md,src/cron/service/ops.ts)src/cron/store.ts,src/cron/service/ops.ts,docs/automation/cron-jobs.md)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.fix(cron): report canonical SQLite path in cron status (fixes opencla…
fix(cron): report SQLite storage path in cron.status instead of legac…
fix(cron): report SQLite storage path in cron.status instead of legac…