Files
openclaw/extensions/workspaces/src
wangmiao0668000666 72521492be fix(workspaces): reject non-decimal --grid segments via strict parser (#107478)
* fix(workspaces): reject non-decimal --grid segments via strict parser

Swap bare Number() in parseWorkspaceGrid for parseStrictNonNegativeInteger
from openclaw/plugin-sdk/number-runtime, so JS-coercion forms (hex,
exponent, octal, binary, negative, empty segment) are rejected at the
CLI --grid parser boundary instead of being silently persisted into
Widget.grid. Same owner-boundary shape as #106384 (google-meet --since)
and #106926 (onepassword --limit).

Co-Authored-By: Claude <noreply@anthropic.com>

* test(workspaces): prove persisted grid coercions

Co-authored-by: wangmiao0668000666 <wangmiao0668000666@users.noreply.github.com>

---------

Co-authored-by: wangmiao0668000666 <wangmiao0668000666@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-15 01:18:02 -07:00
..