Repository navigation
Conversation
Greptile SummaryAdds Confidence Score: 5/5Safe to merge; the only finding is a minor UX inconsistency with the --json flag that doesn't affect correctness. All findings are P2. The implementation is consistent with existing cron op patterns, tests cover both the success and not-found paths, and the change is purely additive with no behavior changes to existing surfaces. src/cli/cron-cli/register.cron-simple.ts — the --json flag is declared but never consulted. Prompt To Fix All With AIThis is a comment left during a code review.
Path: src/cli/cron-cli/register.cron-simple.ts
Line: 38-46
Comment:
**`--json` flag declared but never consulted**
`cron get` always calls `printCronJson(res)` regardless of `opts.json`, so the flag is a no-op. `cron list` explicitly checks `opts.json` to switch between `printCronList` (table) and `printCronJson` (raw), but `cron get` never reads the option. The flag is also surfaced in `docs/cli/index.md` as `cron get <id> [--json]`, which implies a non-JSON default format exists.
Two clean resolutions: (a) drop the `--json` option entirely since the output is always JSON, or (b) add a human-readable single-job view when `--json` is absent (e.g. wrap the job in a one-element array and call `printCronList`).
How can I resolve this? If you propose a fix, please make it concise.Reviews (1): Last reviewed commit: "fix(cron): add single-job get path for i..." | Re-trigger Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5c027bdce4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 14e0705bf1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


Summary
openclaw crononly supports full-job inspection viacron list --json, so consumers must fetch and filter the entire job set even when they already know the target job id.cron.getplusopenclaw cron get <id>for single-job inspection.cron listbehavior changed.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause (if applicable)
edit,run,rm), but the CLI/RPC surface did not expose a matching single-job read path.Regression Test Plan (if applicable)
src/cli/cron-cli.test.tssrc/gateway/protocol/cron-validators.test.tssrc/gateway/server.cron.test.tsUser-visible / Behavior Changes
openclaw cron get <id>for single-job inspection.cron.get.Diagram (if applicable)