Skip to content

feat: expand macro field limits according to user configuration data types#2998

Merged
ert78gb merged 3 commits into
masterfrom
issue-2754-expand-macro-field-limits
Jul 15, 2026
Merged

feat: expand macro field limits according to user configuration data types#2998
ert78gb merged 3 commits into
masterfrom
issue-2754-expand-macro-field-limits

Conversation

@mondalaci

Copy link
Copy Markdown
Member

Summary

  • Export integer range constants from the config serializer and use them in the macro editor.
  • Expand mouse move/scroll coordinate limits from ±9999 to the Int16 range (±32767).
  • Expand delay limit from 65 s to 65.535 s (UInt16 milliseconds).
  • Clamp out-of-range coordinate input so values like 80000 are corrected immediately.

Fixes #2754

Test plan

  • In a move-pointer macro action, enter 80000 for X or Y and confirm it clamps to 32767.
  • Enter -40000 and confirm it clamps to -32768.
  • Enter a delay of 100 seconds and confirm it clamps to 65.535.
  • Save the macro and verify the configuration still serializes correctly.

Made with Cursor

Align mouse move/scroll and delay macro editor limits with Int16 and
UInt16 serialization bounds, and clamp out-of-range coordinate input.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ert78gb ert78gb changed the title Expand macro field limits according to user configuration data types feat: expand macro field limits according to user configuration data types Jul 14, 2026
@ert78gb

ert78gb commented Jul 14, 2026

Copy link
Copy Markdown
Member

@mondalaci The logic does not allow to save invalid value, but the input control allow to type values out of the range. It is not a new behaviour. Would we like to fix it in this PR or we leave it as is

@ert78gb ert78gb merged commit da79be6 into master Jul 15, 2026
5 checks passed
@ert78gb ert78gb deleted the issue-2754-expand-macro-field-limits branch July 15, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expand macro field limits according to user configuration data types

2 participants