Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 15, 2026, 10:18 PM ET / July 16, 2026, 02:18 UTC. Summary PR surface: Source +8, Tests +57. Total +65 across 2 files. Reproducibility: yes. The current implementation uses JavaScript Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Use one explicitly named plain-decimal parser for the intended form fields, preserve signed decimal behavior where the generic helper promises number conversion, reconcile the overlap with #107480, and prove the resulting Control UI save and validation paths live. Do we have a high-confidence way to reproduce the issue? Yes. The current implementation uses JavaScript Is this the best way to solve the issue? No. Centralizing plain-decimal parsing is sensible, but an unsigned regex on the generic Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 08ecf63bb608. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +8, Tests +57. Total +65 across 2 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
|
Add an optional leading minus sign to the STRICT_DECIMAL_RE regex so that negative plain decimals (-1, -3.5, -0.25) are accepted while hex (0x10), scientific (1e3), and leading-plus (+1) notation remain rejected. The original PR (openclaw#107905) inadvertently dropped negative number support by using a regex without the optional minus sign. This restores the prior contract for callers that pass negative decimal strings. Co-Authored-By: Claude <[email protected]>
cfd54fc to
7ba8432
Compare
|
Self-close: unranked + needs proof deadlock. Freeing capacity for higher-value PRs. |
What Problem This Solves
The shared
toNumber()helper uses JavaScriptNumber()conversion, whichaccepts hex (0x10), scientific (1e3), and leading-plus (+1) notation. This
allows non-decimal input to silently pass form-field validation in the
Control UI.
Why This Change Was Made
/^-?(?:\d+(?:\.\d*)?|\.\d+)$/) that onlyaccepts plain decimal strings
decimals (-1, -3.5, -0.25) continue to work for all callers
User Impact
0x10and1e3were silently accepted as cron intervalsVerification
ui/src/lib/format.test.ts—toNumbertest blockcovering positive/negative integers, negative decimals, zero, hex
rejection, scientific rejection, leading-plus rejection, whitespace,
and non-numeric strings
Risk / Compatibility
Low. The strict regex preserves both positive and negative plain decimals.
Only hex, scientific, and leading-plus inputs change behavior — these were
never valid form-field inputs.