Skip to content

Computer use for the Pi coding agent — Windows apps, browsers and desktops through native UI trees, screenshots and real input.

Docs: a click that closes its dialog is delivered; runtime d9f380f6 (LPT-954)

alexshpunt-clanker[bot]d6b186b77353
diff --git a/docs/bundled-runtime.md b/docs/bundled-runtime.md
index ad42415..c843f34 100644
--- a/docs/bundled-runtime.md
+++ b/docs/bundled-runtime.md
@@ -1,6 +1,6 @@
# Bundled CUA runtime
-The npm package carries one native runtime: Cua Driver 0.37.0 for Windows x64, built from the `pi-computer-use` branch of the [alexshpunt/cua](https://github.com/alexshpunt/cua) fork at source `2f1a8b1d`. [FORK.md](https://github.com/alexshpunt/cua/blob/pi-computer-use/FORK.md) lists what the fork adds to upstream Cua Driver. It is the qualified `windows-desktop` profile, so a fresh installation gets every native capability without any configuration:
+The npm package carries one native runtime: Cua Driver 0.37.0 for Windows x64, built from the `pi-computer-use` branch of the [alexshpunt/cua](https://github.com/alexshpunt/cua) fork at source `d9f380f6`. [FORK.md](https://github.com/alexshpunt/cua/blob/pi-computer-use/FORK.md) lists what the fork adds to upstream Cua Driver. It is the qualified `windows-desktop` profile, so a fresh installation gets every native capability without any configuration:
```sh
pi install npm:pi-agent-computer-use
@@ -10,7 +10,7 @@ An update installs a new extension version with its exact runtime. Computer use
## Where the files come from
-The files are published as the fork release [`pi-runtime-0.37.0-2f1a8b1d`](https://github.com/alexshpunt/cua/releases/tag/pi-runtime-0.37.0-2f1a8b1d): `cua-driver.exe`, `cua-driver-uia.exe`, `cua-cursor-theme.exe`, `LICENSE.md` and `THIRD_PARTY_NOTICES.md`. They are byte-identical to the fork's CI build of that commit.
+The files are published as the fork release [`pi-runtime-0.37.0-d9f380f6`](https://github.com/alexshpunt/cua/releases/tag/pi-runtime-0.37.0-d9f380f6): `cua-driver.exe`, `cua-driver-uia.exe`, `cua-cursor-theme.exe`, `LICENSE.md` and `THIRD_PARTY_NOTICES.md`. They are byte-identical to the fork's CI build of that commit.
`src/runtime-pins.json` pins the source, the version, the release URL and the SHA-256 of every file. Before packing, `npm pack` runs `scripts/fetch-runtime.mjs`, which downloads the files into `native-runtime/win32-x64/runtime/` and checks each hash. The directory is not committed to Git.
diff --git a/docs/computer-resources.md b/docs/computer-resources.md
index ab0eb4e..2e08787 100644
--- a/docs/computer-resources.md
+++ b/docs/computer-resources.md
@@ -98,6 +98,8 @@ While the human uses the keyboard or mouse, real input pauses: it refuses with t
A real press goes to whichever window is on top at its point. After the target comes to the front, the driver checks the point of each click, drag start and timeline press. When another window still covers it, the action refuses before anything is pressed there and names that window with its address: a dialog the target owns (it stays in front of its owner even while the owner is active), another window of the same app, or a window of another app. Close or move that window, or act on it instead. The target's own menus and drop-downs take the press as usual.
+A click that closes its window, such as OK or Cancel in a dialog, is `delivered` when a window of the same app takes the foreground. The receipt says the window closed and names the app's window now in front with its address, so the next action can go there. When a window of another app takes the foreground instead, the click stays `unknown`.
+
Keys on a browser page go to the page, so browser shortcuts such as `alt+ArrowLeft` do not run there; use `computer_browser` to go back, or `space: "window"` to press them natively. Pen eraser and barrel, the `x1`/`x2` buttons and `move_relative` exist only natively. Pen pressure and tilt reach apps as real pen input; on a page they arrive as a `pen` pointer in Chrome and Edge. Paint 11 ignores pen pressure; GIMP uses it.
A refused action sent nothing. An `unknown` outcome may have reached the target: Read again and never replay it blindly. Delivery is not proof of the application's response.
@@ -212,7 +214,7 @@ To set one up:
"lab": {
"ssh": "lab-wsl",
"runtime": "windows-desktop",
- "command": "/mnt/c/Users/user/AppData/Local/Programs/PiComputerUse/cua-driver-0.37.0-2f1a8b1d/runtime/cua-driver.exe",
+ "command": "/mnt/c/Users/user/AppData/Local/Programs/PiComputerUse/cua-driver-0.37.0-d9f380f6/runtime/cua-driver.exe",
"node": "/mnt/c/Users/user/AppData/Local/Programs/PiComputerUse/node-v22.22.2-win-x64/node.exe",
"package": "/home/user/.local/share/pi-computer-use/package"
}