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: cut the remaining grabbed work in desktop_type preparation #266
With PR #257, an unchanged keymap is parsed and planned before the grab. Under very heavy load (15 busy loops on one CPU and host load over 70), the first grabbed attempt for text that needs a new binding still expires, and the retry succeeds. Most of the remaining grabbed cost is the verification read and parse, about 750 liveness checks, plus up to 7 single-outstanding X11 round trips of about 35 to 50 ms. Each retry also redoes hello, XKB setup, the free read, and parsing and planning on a fresh connection. In paired runs at 15 loops, the second attempt often ran out of the 3 s preparation budget before it grabbed.
Two options keep every liveness check. One is to pipeline the three keymap requests in X11Wire, which now allows one outstanding reply. The other is to reuse the previous attempt's free read for the byte comparison. Both change safety-relevant typing code and need an owner decision.
Decide whether either option is worth its complexity
Seen again while fixing #268. Under 48 to 55 busy loops on one pinned CPU, desktop_type in desktop-input-captures-live.test.ts failed with "input not-attempted" in both the old and the fixed test, after the caret wait had passed. It failed safely: no text was sent. The limits involved are X11_SETUP_MS (3 s) and X11_GRAB_MS (250 ms) in packages/desktop-linux/src/x11-wire.ts.
Activity
ElbertePlinio commentedon Oct 8, 2026
Seen again while fixing #268. Under 48 to 55 busy loops on one pinned CPU,
desktop_typeindesktop-input-captures-live.test.tsfailed with "input not-attempted" in both the old and the fixed test, after the caret wait had passed. It failed safely: no text was sent. The limits involved areX11_SETUP_MS(3 s) andX11_GRAB_MS(250 ms) inpackages/desktop-linux/src/x11-wire.ts.