Repository navigation
Fix/cron duplicate name validation - #76445
habib-agentic-engineer wants to merge 2 commits into
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Keep open: current main and v2026.6.11 still allow cron duplicate-name creation, and this PR is a focused candidate, but it is not merge-ready because it misses normalized-name collisions, returns the wrong Gateway error class, lacks real behavior proof, and is currently conflicting. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. Do we have a high-confidence way to reproduce the issue? Yes for source-level reproduction: current main creates and pushes normalized cron jobs without a sibling-name check, and update applies name patches without sibling comparison. I did not run a live CLI/Gateway reproduction in this read-only review. Is this the best way to solve the issue? No as submitted. The service boundary is the right layer, but the implementation must compare normalized names and preserve the Gateway invalid-request contract before it is the best fix. Security review: Security review cleared: The diff changes cron validation, tests, and changelog text without dependency, workflow, secret, permission, package metadata, or artifact-execution changes. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 010b61746379. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: Fix/cron duplicate name validation This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Closing per ClawSweeper review verdict |
Fixes #76160
`openclaw cron add` and `cron edit` now enforce unique job names, preventing silent duplicate-name acceptance that could lead to dual-fire risk when both jobs remain enabled.
Problem
Previously, the cron service silently accepted jobs with duplicate names:
Solution
Added name uniqueness validation in the service layer:
Implementation
All entry points (CLI, agent tool, gateway RPC) funnel through the service layer, so validation is enforced everywhere.
Testing
Added dedicated test suite covering:
Breaking Changes
None. This is a bug fix that prevents invalid state. Operators who were accidentally creating duplicate names will now receive clear error messages with instructions to resolve the conflict.
Related