Expand description
P14 — display filtering and the honest isolation matrix.
Three different things live here, and they are deliberately not the same thing:
--display <id>restricts capture and coordinate conversion to one monitor fromDisplayInfo. That is real, works on all three platforms through [crate::backend::capture], and is the only part that changes what the agent can see.--display virtualon Linux prints the Xvfb recipe and, with--exec, runs a prepared command withDISPLAYset. It never starts a server on its own.- macOS
CGVirtualDisplayis probed behind thevirtual-displayfeature and reported as experimental. It is system-visible, it is not a sandbox, and this build never creates one.
Nothing here starts a hypervisor, a compositor, or an X server. See
docs/ISOLATION.md for what an operator can set up instead.
Structs§
- Display
Target - One monitor the rest of the action is confined to.
- Virtual
Display Probe - What the private macOS symbol probe found.
Enums§
- Display
Selector - What
--displayselected.
Constants§
- VIRTUAL_
SELECTOR --display virtual: a separate X server, prepared by the operator.- XVFB_
DISPLAY - Display the Xvfb recipe prepares, as
DISPLAY=:99. - XVFB_
GEOMETRY - Screen geometry the recipe asks Xvfb for.
Functions§
- display_
target - Build the target for one monitor. A zero-sized monitor is not a target.
- ensure_
point_ inside - Reject a point that the chosen monitor does not cover.
- ensure_
region_ inside - Reject a region that is not fully covered by the chosen monitor.
- exec_
arguments - Split
--execarguments, dropping a leading--separator. - exec_
prepared - Replace this process with
command, running inside the prepared environment. Never returns on success. - find
- Find one monitor by id.
- infeasible
- Everything that is not built, with the reason. Keys and wording mirror
docs/ISOLATION.md; the snapshot test in this module is what keeps them from drifting apart. - matrix
- The JSON body of
computer-use isolation. - parse_
selector - Parse
--display.virtualis matched exactly, case-insensitively. - platform
target_osas the short name this crate uses everywhere else.- point_
inside - True when the virtual-desktop point is inside the monitor.
- prepared_
env - Environment overrides applied by
--display virtual --exec. - probe
- Run the macOS symbol probe. Cheap enough for
isolationon every call. - region_
inside - True when
regionfits entirely inside the monitor. - resolve
- Resolve a numeric
--displayagainst the live display list. - virtual_
display_ compiled - True when this binary was built with
--features virtual-display. - virtual_
supported - True when this platform has a supported
--display virtualrecipe. - window_
inside - True when the window rectangle is fully covered by the chosen monitor.
- xvfb_
command - The Xvfb command line the recipe documents and
docs/ISOLATION.mdrepeats. - xvfb_
recipe - The recipe as JSON: the exact commands and what this binary does with them.