Skip to content

Visible agent cursor on macOS (opt-in overlay in cua's own engine at the agent's target point) #235

Closed

Description

@SSFSKIM

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). A closeEnough timing 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 closeEnough suggests.
  • 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

Open questions

  1. Where the opt-in lives: per device or per session; and whether MAWS should turn it off where it draws its own cursor.
  2. Screenshots: include the cursor, omit it, or let the caller choose.
  3. 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

  1. SSFSKIM commented on Oct 30, 2026

    @SSFSKIM
    OwnerAuthor

    [board] deferred: Owner 2026-10-30: separate from #225 (Linux); not needed now, later.

  2. added
    enhancement
    status:deferred
    priority:P3
    status:ready-for-architect
    and removed
    status:deferred
    on Oct 30, 2026
  3. SSFSKIM commented on Oct 30, 2026

    @SSFSKIM
    OwnerAuthor

    [board] ready-for-architect: Owner 2026-10-30: start now (design session cua_repl#1ea561bc).

  4. added
    status:in-design
    and removed
    status:ready-for-architect
    on Oct 30, 2026
  5. SSFSKIM commented on Oct 30, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-design: Owner approved the design 2026-10-30; spec on feat/235-macos-cursor (331e7f5), in review.

  6. added 3 commits that reference this issue on Oct 30, 2026
  7. added
    status:in-progress
    and removed
    status:in-design
    on Oct 30, 2026
  8. 132 remaining items

  9. added 2 commits that reference this issue on Oct 31, 2026
  10. added
    status:in-review
    and removed
    status:in-progress
    on Oct 31, 2026
  11. SSFSKIM commented on Oct 31, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR #240 open (head e6394e2, ci-gate green run 41251127007); stated gaps tracked in #238, #239

  12. added 2 commits that reference this issue on Oct 31, 2026
  13. removed
    status:in-review
    on Nov 1, 2026
  14. SSFSKIM commented on Nov 1, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Merged in #240 (7a24390), main tree = the gated head tree; limits tracked in #238 and #239

  15. added 3 commits that reference this issue on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions