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
[TASK] Refactor keep the display controller open for the length of a hold #1793
ScreenControl.Drive (internal/computer/screen_control.go) sets up the display from scratch for every single person input: it runs display.DetectDisplay(), gets a controller, reads the screen dimensions, computes the frame size, performs the input and closes the controller. Typing sends one input per character, so a sentence repeats that work dozens of times, and each input's reply waits on it.
Requested: keep what does not change between inputs for the length of a hold, so an input only pays for itself.
Detect the display and get the controller once when the hold starts, and close it on hand-back.
Cache the screen and frame dimensions for the hold, refreshed if the screen is resized.
The screenshot capture loop (screenshot_server.go, captureScreenshot) does the same detect-and-open on every capture and reads the screen dimensions twice per capture. It now runs twice a second during a hold, so it is worth the same treatment.
Activity
feat(computer): capture the screen promptly while a person holds it (#…
refactor(computer): keep the display open for the length of a hold
inference-gateway-releaser commentedon Nov 10, 2026
🎉 This issue has been resolved in version 0.253.0 🎉
The release is available on:
Your semantic-release bot 📦🚀