Repository navigation
[Feat] Add single-job cron get path - #75117
Conversation
|
Codex review: needs changes before merge. Summary Reproducibility: not applicable. as a feature PR. The current-main gap is source-confirmed by the absence of Real behavior proof Next step before merge Security Review findings
Review detailsBest possible solution: Regenerate and include the tracked protocol artifacts, then land the additive Do we have a high-confidence way to reproduce the issue? Not applicable as a feature PR. The current-main gap is source-confirmed by the absence of Is this the best way to solve the issue? No, not merge-ready as-is. The direct read API is the narrow maintainable approach, but the protocol artifact drift must be fixed before merge. Full review comments:
Overall correctness: patch is incorrect Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against a66d8ffe7533. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9f7cd00467
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
Rechecked this against current
Current blocker: this is not merge-ready against today’s The resolution should be mechanical: keep the PR’s Remote CI’s current failures look unrelated/stale ( Re-review progress:
|
|
Landing verification for the rebased PR head
Thanks @samzong! |
|
Landed via rebase onto
Thanks @samzong! |
Summary
cron.listand filtering client-side.cron.get, CLIopenclaw cron get <id>, agent-toolget, protocol schema/types/validators, docs, and focused tests.cron list/cron showbehavior changed.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Real behavior proof (required for external PRs)
305e7bd1ab, Node/pnpm workspace, isolated temporaryHOME,OPENCLAW_STATE_DIR, andOPENCLAW_CONFIG_PATH, foreground Gateway with--auth noneon loopback port19731.cron get <id>returned the same stored job id/name/payload created through the live Gateway-backed CLI path; a missing id returned the expectedcron job not founderror.openclaw cron getcommand orcron.getGateway method to call.Root Cause (if applicable)
Regression Test Plan (if applicable)
src/cron/service.get-job.test.tssrc/gateway/server.cron.test.tssrc/gateway/server-methods/cron.validation.test.tssrc/gateway/protocol/cron-validators.test.tssrc/cli/cron-cli.test.tssrc/agents/tools/cron-tool.test.tssrc/agents/tools/cron-tool.schema.test.tssrc/gateway/server-cron-lazy.test.tssrc/plugins/contracts/scheduled-turns.contract.test.tsUser-visible / Behavior Changes
openclaw cron get <id>for stored cron job JSON inspection.cron.get.getaction support to the agent cron tool.Diagram (if applicable)
Security Impact (required)
Yes/No) YesYes/No) NoYes/No) NoYes/No) YesYes/No) NoYes, explain risk + mitigation:cron.getis a new read-only Gateway method and agent-tool action. It usesoperator.read, matchingcron.list, which already exposes stored cron job definitions. Restricted isolated cron tool grants only allowgetfor the current job id.Repro + Verification
Environment
HOME,OPENCLAW_STATE_DIR, andOPENCLAW_CONFIG_PATH; Gateway auth disabled for loopback proof; dummy CLI token only used because URL overrides require explicit credentials.Steps
openclaw cron add --json.openclaw cron get <job-id>.openclaw cron get missing-proof-job.Expected
cron listandcron showbehavior remains unchanged.Actual
cron get proofjob JSON.GatewayClientRequestError: cron job not found: missing-proof-job.Evidence
Attach at least one:
Verification run after rebase to
origin/main/ commit305e7bd1ab:Known local gate gaps:
Human Verification (required)
cron addfollowed bycron get <id>; missing id error path; CLI help registration; service reads existing/missing jobs; cold disabled scheduler loads persisted jobs; Gatewaycron.getsuccess/missing paths; CLI routing; protocol validation; agent tool routing.idandjobIdselectors; cold disabled scheduler store load; restricted isolated cron tool can onlygetthe current job id.Review Conversations
If a bot review conversation is addressed by this PR, resolve that conversation yourself. Do not leave bot review conversation cleanup for maintainers.
Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoRisks and Mitigations
cron.getcould diverge from cron read-store behavior.CronService.readJob()uses the same lockedensureLoadedForRead()path as other async read operations, and cold disabled scheduler coverage locks this in while preserving synchronousgetJob()for already-loaded event paths.