Skip to main content

Module window_blackout

Module window_blackout 

Source
Expand description

The blackout of a UI window capture of an AgentMux window (docs/specs/SPEC_DEEP_LINKS_ONE_FRAMEWORK_2026_11_20.md §7, G5).

Each pane or panel showing private or secret content (the Vault, the Audit, Memory, a browser pane in the person’s own profile, and the panels listed in the app’s capture-mask.ts) is blacked out by its rectangle, and the rest of the window is captured. The rectangles and the frame come from the same instant: srv asks every window for its rectangles just before the frame (begin) and just after (end); the capture is refused if the window did not answer, if its layout moved or changed in between, if it says it can’t give them, or if the frame’s size or scale differs from the one they were measured for. Nothing is ever blacked out from rectangles of another moment.

Structs§

MaskRect 🔒
A rectangle in the window’s viewport, in CSS pixels.
WindowMask 🔒
One window’s answer, as srv’s POST /api/v1/ui/capture_mask gives it.

Constants§

INSTEAD 🔒
What to do instead, said with every refusal.
IN_CONTAINER 🔒
The refusal for a container agent, which has no access to the host’s screen.
OTHER_INSTANCE 🔒
The refusal for an AgentMux window of another AgentMux, which this one can’t ask for its rectangles.
UNSANDBOXED_SUFFIX 🔒
What the host adds to a window’s title on Linux when it runs without the sandbox (crates/cef/src/client/display.rs); the page’s own title, which the window reports, does not have it.

Functions§

after 🔒
Whether the frame (width × height device pixels) may be blacked out by begin’s rectangles, given every window’s answer to end.
before 🔒
The answer for the window titled title, out of every window’s answer to begin, if it may be captured now.
black_out 🔒
Black out each of mask’s rectangles in image, a pixel wider on every side so no edge of the content shows.
same_title 🔒
Whether the operating system’s title for a window is the page title page the window reported.
unique_title 🔒
Refuses when more than one of this AgentMux’s own windows has the target’s title (same_title counts the windows on screen, the target included), whichever of them answered: an answer is found by its title.