You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
desktop: pointer input accepts points off the screen, and X wraps values above 32767 #424
Desktop pointer commands accept any non-negative integer coordinate (assertCoordinate in packages/desktop-linux/src/input.ts). X then changes points the session cannot hold:
A point past the screen edge moves to the edge. click 2000 100 on a 640x480 session clicks at 639,100.
A value above 32767 wraps, because X11 coordinates are 16-bit. On a private 640x480 Xvfb, click 32768 100 clicked at 0,100 and click 65537 100 at 1,100.
In both cases the command succeeds, so an agent that sends a wrong coordinate clicks a different point than it asked for and gets no error. The wrap is the worse case, since it lands on the opposite side of the screen.
Found while reviewing the click pulse for #368. The pulse follows the edge move, and a wrapped click shows no pulse.
Refuse pointer coordinates outside the session size with a clear error, for click, double click, move, drag and scroll, in the CLI and MCP
Activity
ElbertePlinio commentedon Oct 28, 2026
Found in the review of PR #425 (#368).