Repository navigation
Description
Summary
Driving a computer after Take over is slow because the screen a person sees is at most as fresh as the worker's capture timer. The screenshot server (internal/computer/infrastructure/screenshot_server.go) captures on a ticker of computer_use.screenshot.capture_interval seconds - 3 by default, a whole number of seconds, so never below 1 - and read_frame only ever answers the latest buffered frame. A client can poll as fast as it likes (the Desktop app polls every 300 ms while a person drives) and still sees the result of a click up to 3 seconds later.
Requested: while a person holds the screen, capture promptly so the view follows their input.
- Capture a fresh frame right after each
screen_inputlands, so the nextread_frameshows its effect. - While the screen is held, capture at a sub-second interval instead of
capture_interval. Outside a hold the interval stays as configured, so an idle computer does no more work than today.
Related costs on the same path, worth looking at in the same change or as follow-ups:
ScreenControl.Drive(internal/computer/screen_control.go) detects the display, opens a controller and reads the screen size again for every single input. Typing sends one input per character. Tracked in [TASK] Refactor keep the display controller open for the length of a hold #1793.ScreenInputhas no pointer press or release, so drag and text selection cannot be driven. It does acceptmove. Tracked in [FEATURE] Pointer press and release during a take-over, so a person can drag #1792.- Every
read_framereturns the whole frame as base64 even when it did not change. A frame id orIf-None-Matchstyle check would let a client skip unchanged frames. Tracked in [FEATURE] Let a client skip unchanged frames in read_frame #1794.
Longer term a pushed stream would replace polling altogether. The GNOME backend already opens a org.gnome.Mutter.RemoteDesktop session for input, and its screen-cast side can deliver video.
Observed on v0.252.0 with ghcr.io/inference-gateway/computer:0.252.0 and the default capture_interval: 3.
Acceptance Criteria
- After a
screen_input, the nextread_framereturns a frame captured after that input was applied - While a screen is held, frames are captured at a sub-second interval, and the configured
capture_intervalapplies again afterhand_back - A computer whose screen nobody holds captures no more often than today
-
docs/computer-use.mdanddocs/browser-extension-protocol.mddescribe the capture behaviour during a hold
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
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 📦🚀