Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 16, 2026, 5:12 AM ET / 09:12 UTC. Summary PR surface: Source +33, Tests +89. Total +122 across 5 files. Reproducibility: yes. Current-main behavior accepted inputs such as Review metrics: none identified. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the cron-owned exact parser after refreshing the merge head and completing required checks; avoid broadening the shared Do we have a high-confidence way to reproduce the issue? Yes. Current-main behavior accepted inputs such as Is this the best way to solve the issue? Yes. Keeping strict interpretation local to the cron field is the narrowest maintainable fix because it aligns validation, preview, and persistence without changing unrelated callers of the shared numeric helper. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against f0720a856d77. Label changesLabel justifications:
Evidence reviewedPR surface: Source +33, Tests +89. Total +122 across 5 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (4 earlier review cycles)
|
Co-authored-by: xingzhou <[email protected]>
Co-authored-by: xingzhou <[email protected]>
Co-authored-by: xingzhou <[email protected]>
Co-authored-by: xingzhou <[email protected]>
|
Merged via squash.
|
* fix(ui): reject nondecimal cron repeat amounts * fix(ui): satisfy cron LOC ratchet * fix(ui): validate cron intervals exactly Co-authored-by: xingzhou <[email protected]> * chore(pr): stage cron UI proof Co-authored-by: xingzhou <[email protected]> * chore(pr): remove staged cron UI proof Co-authored-by: xingzhou <[email protected]> * fix(ui): remove unused cron type export Co-authored-by: xingzhou <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
…s strict decimal The cron form's staggerAmount, timeoutSeconds, failureAlertAfter, and failureAlertCooldownSeconds inputs were parsed with the lenient toNumber() helper, so free text like "0x10", "1e5", or "0b11" passed validation and was persisted as silently coerced values (16, 100000, 3). Reuse the strict decimal discipline already applied to everyAmount (openclaw#107480) via a new parseCronDecimal helper so non-decimal input surfaces the existing field errors and blocks submit; plain decimals such as "30" and "0.5" are unchanged.
* fix(ui): reject nondecimal cron repeat amounts * fix(ui): satisfy cron LOC ratchet * fix(ui): validate cron intervals exactly Co-authored-by: xingzhou <[email protected]> * chore(pr): stage cron UI proof Co-authored-by: xingzhou <[email protected]> * chore(pr): remove staged cron UI proof Co-authored-by: xingzhou <[email protected]> * fix(ui): remove unused cron type export Co-authored-by: xingzhou <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes an issue where the Control UI accepted JavaScript numeric syntax such as
0x10,1e3, or+1in the recurring interval field. Those strings could be silently reinterpreted as a different interval, and the schedule preview described them as valid.Why This Change Was Made
One parser now owns validation, request construction, and preview rendering. It accepts plain positive decimal syntax, converts the selected unit to milliseconds with exact integer arithmetic, and requires a safe integer result from 1 through
Number.MAX_SAFE_INTEGER.This keeps valid fractional intervals such as
1.5or4.1minutes while rejecting exponent, hexadecimal, signed, fractional-millisecond, and overflow values. Gateway schemas and unrelated Cron numeric fields keep their existing contracts.User Impact
Invalid repeat amounts show the existing invalid-interval error, produce no preview, and send no create or update request. Valid decimal inputs retain their existing behavior.
Evidence
Before the fix, the current
mainControl UI accepted1e3minutes and renderedRuns every 1e3 minutes.After the fix,
1e3minutes shows the field error and no schedule summary.Additional live proof:
4.1minutes remains valid and rendersRuns every 4.1 minutes.1.5minutes saves as exactly90000milliseconds.Verification:
mainmerge.run_1a0874dd377e.git diff --checkpassed.29492134087passed all required jobs.Changelog
Not added.
CHANGELOG.mdis release-owned; release-note context lives here.