Repository navigation
feat(computer-use): replace desktop tools with scoped native sessions - #4463
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
Deploying openwork with
|
| Latest commit: |
d5c77d9
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b0c7884c.openwork.pages.dev |
| Branch Preview URL: | https://feature-computer-use-session.openwork.pages.dev |
Test evidence — computer-use-respects-window-consent-fresh-observations-and-the-person-s-stop-co — ✅ passedSHA 8702cac · engine v1 ✅ passed · 0 expectations passed · 0 failed · 0 pending steps 1 ✅ Discovery exposes identities without window content or input access (0.0s) · 2 ✅ The person chooses a window and grants app controls (1.1s) · 3 ✅ A different connection cannot read or act through the grant (0.0s) · 4 ✅ Only the approved window is read and its protected field is omitted (0.2s) · 5 ✅ Accessible actions update the selected window once and leave the other window alone (0.3s) · 6 ✅ A resized window and a paused session reject old observations (0.2s) · 7 ✅ A person's typing pauses control until they explicitly resume with a fresh view (0.6s) · 8 ✅ Stop revokes the session immediately and leaves both windows intact (0.0s) · 9 ✅ Pausing an in-flight drag releases the pointer and never resumes the old path (1.4s) Test run created 2026-09-06T19:28:03.944Z · Source: |
Computer Use currently mixes semantic window operations with whole-screen input, optional freshness checks, model-controlled strict-mode changes, and clipboard access. This replaces the desktop integration with a standalone native session runtime: the person approves an exact app, selects a window, and chooses read-only, accessibility, or foreground mouse/keyboard scope.
Resulting behavior
@openwork/computer-usepackage with six MCP session tools, public macOS Accessibility and ScreenCaptureKit APIs, and no dependency on the HandsFree or voice runtime.This is a macOS 14+ preview. Windows/Linux backends, locked use, persistent app grants and background mouse/keyboard operation are not included. The native boundary does not sandbox what an approved app itself can do; action authorization and untrusted-content handling remain responsibilities of the calling host. Exact visual-image matching can reject animation or caret changes.
The package README contains the architecture, protocol, model/orchestration strategy, limitations and primary design sources: runtime design.
Takeover fixes
Pausing immediately releases held pointer input, and drag cleanup cannot send a second release. Session status explains why control paused and requires human takeover. The native journey explicitly changes the window picker from the unapproved window to the approved one, checks manual typing and fresh observations after Resume, and interrupts a real drag before Stop.
Native compatibility fixes
Live Mac verification found and fixed missing process start identities for directly launched apps, transient disagreement between Accessibility and WindowServer during opening animation, and pointer events with missing window-local coordinates. Pointer dispatch uses an isolated, availability-checked private
CGEventSetWindowLocationcompatibility hook; this OS dependency is documented and fails explicitly if unavailable. Foreground, hit-test, consent and per-event checks remain enforced.Verification — Passed
Head:
8702cacdcfce95ceaa5e9c6f90e5fcd5d3c1852e.pnpm evals:e2e computer-use-window-scope --local— exit 0; 1 passed, 0 failed, 0 skipped. Printed placement:placement: local (--local).pnpm --filter @openwork/computer-use check— four native boundary tests pass; JavaScript syntax checks pass.pnpm --dir evals typecheck:spec-layerandgit diff --checkpass.All CI checks are green on this head, and automatic squash merge is enabled. Merge still requires eligible reviewer approval: automatic clearance requires human review for the macOS alpha workflow path-filter change. Platform coverage beyond this Mac, packaged permission migration and provider task-success benchmarking remain separate work.