Repository navigation
Description
Problem & intent
When cua's own macOS engine (#117) drives an app in the background, nothing on screen shows where the agent is acting. The vendor's macOS helper, which cua replaces, draws a "virtual cursor" overlay for this; it is the agent cursor people see in Codex's computer use. #117 left it out on purpose (spec docs/doperpowers/specs/2026-10-18-own-native-engine-design.md, Decision Log 2026-10-18: "no cursor overlay … MAWS synthesizes its own agent cursor"). MAWS draws its cursor inside its in-app browser pages. Nothing yet shows the agent's target over native macOS apps.
Intent: an opt-in on-screen cursor in cua's macOS engine that shows the agent's target point and motion, so a person watching can follow what the agent does. It must never take input, and it must never move the real pointer, focus or stacking.
Owner, 2026-10-30: a separate ticket from #225, which stays Linux-only. Not needed now; later.
What the vendor's macOS helper does (behaviour facts from the #117 research; nothing to copy)
The source is ~/.claude/jobs/1ea561bc/tmp/117/E-helper-catalogue.md §3.4 and A-contract.md (on the MacBook). Items marked inferred are readings of the binary, not observed behaviour.
- The per-app controller holds
virtualCursor: ComputerUseCursor?, created on demand (createVirtualCursorIfNeeded()). Click paths take it as a parameter (click(…focusEnforcer:virtualCursor:),sendClick(…virtualCursor:)). - The cursor animates along generated paths with tuned motion (
MotionConfiguration: click angle, arcs, spring response, a straight-path distance threshold). AcloseEnoughtiming lets the action go ahead before the animation finishes, so the drawing need not delay input (inferred). - It is a drawn overlay. The real pointer is not moved (inferred). A "lens" frame animation (
LensSequence/Lens_frame_00…44.png,SkyLensView) is part of its look. - It is visible to other tools: during Independence 4: cua's own native accessibility engine (replace sky) measured against a native baseline #117 M2b, the vendor's "ChatGPT Computer Use" cursor overlay tripped the harness's alert watch (fixed by 38ecfa0).
Prior art outside the vendor: trycua's cua-driver ships a cursor overlay and a cursor-theme-cli (~/.claude/jobs/1ea561bc/tmp/117/D-cua-driver.md). Read it for ideas only; cua takes no code from surveyed projects.
Constraints
- No vendor code and no vendor assets (the lens frames included). This is a clean design.
- The overlay ignores mouse events, never becomes key or main, and never changes the driven app's focus or window order.
- It adds no latency to input: drawing stays off the request path, as the vendor's
closeEnoughsuggests. - Screenshots: decide whether window and desktop screenshots include the overlay. ScreenCaptureKit can exclude cua's own window.
- It must not trip cua's own harness: the interference and alert watches must recognize cua's overlay or exclude it.
Success criteria
- With the opt-in on, the cursor appears at each targeted input's point and moves along the input's path. The real pointer, the frontmost app and the key window are unchanged (checked by Independence 4: cua's own native accessibility engine (replace sky) measured against a native baseline #117's witness).
- A person's click on the overlay's area reaches the window beneath it.
- Independence 4: cua's own native accessibility engine (replace sky) measured against a native baseline #117's harness shows input latency unchanged within noise with the cursor on.
Open questions
- Where the opt-in lives: per device or per session; and whether MAWS should turn it off where it draws its own cursor.
- Screenshots: include the cursor, omit it, or let the caller choose.
- Whether it should share a contract with Visible agent cursor on Linux (opt-in overlay at the agent's target point) #225 (Linux), even as a separate ticket.
Activity
SSFSKIM commentedon Oct 30, 2026
[board] deferred: Owner 2026-10-30: separate from #225 (Linux); not needed now, later.
SSFSKIM commentedon Oct 30, 2026
[board] ready-for-architect: Owner 2026-10-30: start now (design session cua_repl#1ea561bc).
SSFSKIM commentedon Oct 30, 2026
[board] in-design: Owner approved the design 2026-10-30; spec on feat/235-macos-cursor (331e7f5), in review.
#235 spec: review round 1 folded (event-driven attachment, full-frame…
#235 spec: review round 2 folded (menus through the window-state chec…
#235 spec: the act hook's placement stated once for both kinds; spec …
132 remaining items
#235 spec and record: item 1's order declared from the records (#239)…
#235 runbook: its status, done
SSFSKIM commentedon Oct 31, 2026
[board] in-review: PR #240 open (head e6394e2, ci-gate green run 41251127007); stated gaps tracked in #238, #239
#235 spec and record: item 5's screen-recording clause passes, from t…
#235: a visible agent cursor drawn by cua's own macOS engine (#240)
SSFSKIM commentedon Nov 1, 2026
[board] done: Merged in #240 (7a24390), main tree = the gated head tree; limits tracked in #238 and #239
#171 M3: merge origin/main (f1bc48e, plugin 0.20.3) into feat/171-m3
#235 evidence: state the window-ID capture as the rule for later sitt…
#235 evidence: remove six probe6c frames that captured the owner's te…
Finder harness: pin the frame through the window-frame probe, judge o…
Own macOS engine M4: pending install, approve, permission flow, hoste…