Computer use for the Pi coding agent — Windows apps, browsers and desktops through native UI trees, screenshots and real input.
TypeScript accessibilityagent-toolsai-agentbrowser-automationcomputer-usecuadesktop-automationelectronpipi-coding-agentpi-extensionpi-packageplaywrighttypescriptui-automationvisionwebview2windowswindows-automationwsl
Docs: a Remote Desktop display keeps the size its client sets (LPT-953)
alexshpunt-clanker[bot]bba83b837383
diff --git a/.pi/skills/computer-use/SKILL.md b/.pi/skills/computer-use/SKILL.mdindex 484335a..4f9e2d4 100644--- a/.pi/skills/computer-use/SKILL.md+++ b/.pi/skills/computer-use/SKILL.md@@ -21,7 +21,7 @@ On another configured machine, use its own addresses exactly as for this one, anFor work in one part of a window, such as a canvas, a map or a game board, make a viewport with `computer_view` from a rectangle of the overview already seen, then pass its address (`computer:game/pano`) to the input tools: points are pixels of the viewport's image, which has the window's own resolution, and the change list covers only the viewport. Read the viewport to look again, with `ocr` for small text; it follows the window. To see one element closer, crop it with `element:crop`; a crop is readonly.-Read displays only within authorized YOLO scope. If a high-resolution display makes overviews too dense, `computer_display` changes its resolution; the session restores it on close, and earlier display and window observations stop working. Display, detail and frame pixels never become input points.+Read displays only within authorized YOLO scope. If a high-resolution display makes overviews too dense, `computer_display` changes its resolution; the session restores it on close, and earlier display and window observations stop working. A Remote Desktop display keeps the size its client sets: Read a region in detail or make a viewport instead, and tell the user where the size is set. Display, detail and frame pixels never become input points.## Plan and actdiff --git a/docs/computer-resources.md b/docs/computer-resources.mdindex 600977a..549e35f 100644--- a/docs/computer-resources.md+++ b/docs/computer-resources.md@@ -160,7 +160,7 @@ An `aria` template is Playwright's YAML, such as `- list "Pick":\n - listitem "`computer_window` samples the window's state and sends one command. Move and resize take integer Windows desktop pixels, not image, CSS or DIP coordinates, and need a normal window that is neither minimized nor maximized. Maximize and focus need the window on the current virtual desktop; nothing switches desktops. Focus does not restore a minimized window; `restore` does. The receipt reports the requested and measured bounds and the foreground separately from keyboard focus; Read again to see the new paint. These need the `windows-window-management` runtime (`windows-desktop` includes it); a runtime without it refuses, and keys or clicks are no substitute.-`computer_display` (YOLO) uses only modes the graphics driver lists; an unsupported size refuses and lists the supported ones. The change also affects what the human sees. Closing the computer session or the machine restores the replaced mode. Read displays and windows again afterwards: earlier display and window observations no longer work.+`computer_display` (YOLO) uses only modes the graphics driver lists; an unsupported size refuses and lists the supported ones. The change also affects what the human sees. Closing the computer session or the machine restores the replaced mode. Read displays and windows again afterwards: earlier display and window observations no longer work. A display of a Remote Desktop session has the one size its client sets: the displays listing and a refused change say so. The user changes it by resizing the client window, reconnecting with another size or the client's display settings; Windows scaling is the user's setting too. Computer use changes neither; to read small controls, Read a region in detail or make a viewport.Delete of a window asks it to close: a browser the session opened closes with its disposable profile, an attached browser is detached first, and other windows get the standard close request. The receipt says whether the window closed; an app that asks about unsaved work stays open, so Read it next. Add `?force=true` to the window address to kill the hung app of a window this session opened. Safe closes only windows the session opened.