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
[Tether 0.1.15, bundled open-terminal 0.17.17, Open WebUI 0.13.3] [macOS 27.2.1, Apple M2 (Mac mini), 1920×1080] Desktop view lags when the mouse moves and windows can't be dragged #53
Tether 0.1.15, bundled open-terminal 0.17.17, Open WebUI 0.13.3
Platform
macOS 27.2.1, Apple M2 (Mac mini), 1920×1080
Description
The desktop view (native frames transport, open_terminal/desktop/native.py) has two macOS problems:
1. Laggy, stalling stream while the mouse moves
pyautogui's macOS backend sleeps DARWIN_CATCH_UP_TIME (default 10 ms) after every mouse event, so each moveTo/scroll takes about 12–15 ms. The browser sends pointer moves up to 60 times a second (one per animation frame), and all input runs on the same single-thread executor as screen capture (max_workers=1). The commands() loop awaits each input in turn, and frameAck arrives on that same loop, so acks queue behind mouse events and frames stop while the mouse moves.
Measured on the Mac: moveTo takes 11.9 ms by default, 1.75 ms with DARWIN_CATCH_UP_TIME = 0.001, and 0.25 ms with 0. The relay on the server side was not the bottleneck (≤6% CPU, empty socket send queues).
2. Windows cannot be dragged
While a button is held, position() still calls moveTo(), which posts kCGEventMouseMoved. macOS only drags windows, selects text and drags files on kCGEvent*MouseDragged events, so press, move and release never drags.
Steps to reproduce
Connect Tether on macOS and open the computer's desktop from Open WebUI.
Move the mouse quickly: the picture freezes or jumps.
Try to drag a window by its title bar: it doesn't move.
Additional context
Fix tested locally in open_terminal/desktop/native.py; both problems went away:
changed the title [-][0.1.15] [macOS 27.2.1 arm64] Desktop view lags when the mouse moves and windows can't be dragged[/-][+][Tether 0.1.15, bundled open-terminal 0.17.17, Open WebUI 0.13.3] [macOS 27.2.1, Apple M2 (Mac mini), 1920×1080] Desktop view lags when the mouse moves and windows can't be dragged[/+]on Nov 15, 2026
Activity
[-][0.1.15] [macOS 27.2.1 arm64] Desktop view lags when the mouse moves and windows can't be dragged[/-][+][Tether 0.1.15, bundled open-terminal 0.17.17, Open WebUI 0.13.3] [macOS 27.2.1, Apple M2 (Mac mini), 1920×1080] Desktop view lags when the mouse moves and windows can't be dragged[/+]