From efb349e838b7ccdef16f2fd4e57d18afcc8a9482 Mon Sep 17 00:00:00 2001 From: Mex <44814932+MMexicann@users.noreply.github.com> Date: Sun, 15 Nov 2026 18:11:59 +0100 Subject: [PATCH] docs: clarify screenshot paths within the write grant Document the same scoped absolute paths accepted by the screenshot writer and the other automation file operations. --- docs/control-protocol.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/control-protocol.md b/docs/control-protocol.md index ecf603fe9a..0f4095ee6a 100644 --- a/docs/control-protocol.md +++ b/docs/control-protocol.md @@ -154,7 +154,7 @@ The transport is `apps/photocraft/src/control_server.rs`, and the handlers are i - `ui.resize {width, height}`: resize the main window - `ui.gpu.simulateLoss {error?}`: act as if the wgpu device was lost (or reported an error with `error: true`). The app switches to the CPU image compositor (after a loss for the rest of the session; after an error until a successful Retry GPU) and shows the same recovery warning as on a real loss. `gpuFallbackNotice` in `ui.inspect` contains the reason while the warning is open. Keep Using CPU saves CPU compatibility for the next launch. Retry GPU saves GPU mode; after an error (`error: true`) it also builds a new GPU canvas on the same device at once (`gpuInfo.canvas` is `gpu` again, #6577), and after a loss it asks the user to save and restart. The window renderer still requires a working graphics or software adapter. Returns `wasActive` and `gpuInfo`. For testing the fallback. With `destroy: true` it destroys the window's real wgpu device instead, as a driver reset does (see `docs/development.md` › device loss): the app saves every unsaved document for recovery and closes. Returns `destroyed` - `ui.screenshot {path?, focus?}`: capture the main window (PNG). With no path the reply contains - base64 PNG data; a path is relative to the automation write root. Raises the window first + base64 PNG data; a supplied path may be relative to the automation write root or absolute beneath its canonical or configured spelling. Raises the window first (default) because occluded macOS windows stop rendering. A request sent before the first frame is queued (within the same limits and deadline) and captures once the window geometry is known, as on 0.15. At most four captures may be outstanding (waiting for geometry, rendered or awaiting