Repository navigation
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close: the remaining custom cron job ID feature is already tracked by the canonical open issue, while this PR is conflicting, lacks real behavior proof, and no longer updates the active current-main protocol/tool paths cleanly enough to remain the landing target. Canonical path: Keep the canonical feature issue open and close this stale PR; any implementation should be a current-main port or replacement that updates the active protocol package, CLI, service, generated clients, docs, and agent-tool canonicalizer with real behavior proof. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Keep the canonical feature issue open and close this stale PR; any implementation should be a current-main port or replacement that updates the active protocol package, CLI, service, generated clients, docs, and agent-tool canonicalizer with real behavior proof. Do we have a high-confidence way to reproduce the issue? Yes for the source-level feature gap: current main has no cron add --id flag, CronJobCreate omits id, the active protocol schema has no id field, and createJob always generates a UUID. I did not run a live CLI/Gateway repro because this was a read-only cleanup review. Is this the best way to solve the issue? No as submitted. The feature direction is plausible, but this stale branch misses current protocol/tool paths, is conflicting, and needs maintainer-approved validation plus real behavior proof before it is the best fix. Security review: Security review cleared: No concrete security or supply-chain concern was found; the diff touches cron validation, generated models, docs, and tests without dependency, workflow, secret, permission, or package-execution changes. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 82dfd8910743. |
7ba3fab to
76b7ccf
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
|
@Saitop thanks for the PR. ClawSweeper is still waiting on real behavior proof before this can move forward. Useful proof can be a screenshot, short video, terminal output, copied live output, linked artifact, or redacted logs that show the changed behavior after the fix. Please redact private tokens, phone numbers, private endpoints, customer data, and anything else sensitive. Once proof is added to the PR body or a comment, ClawSweeper or a maintainer can re-check it. |
|
ClawSweeper applied the proposed close for this PR.
|
Replaces #40218. The previous PR was closed when the old public fork was removed during repo hygiene cleanup; this is the same upstreamable change from the new public contribution fork.
Summary
CronJobCreateaccepts optionalid(1-128 chars,[a-zA-Z0-9:_-]); when valid,createJobuses it, elsecrypto.randomUUID(). (2)add()throws if a job with the same id already exists.idkeep UUID behavior. No change to update/remove or list.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
id. If provided and valid, that id is used; otherwise a UUID is assigned.cron job with id "..." already exists.Security Impact (required)
Repro + Verification
Environment
pnpm build && pnpm check && pnpm test --run src/cron/service.jobs.test.ts src/cron/service.get-job.test.tsSteps
openclaw cron add --id my-nightly ...(or via Gateway cron API withid: "my-nightly").Expected
my-nightly. Second add throws.Actual
Evidence
createJob custom id(valid/invalid/omit/trim) anduses custom id when provided and rejects duplicate id on addin service.get-job.test.ts.