Skip to content

Agent cursor sinks behind covering windows during Computer Use #5048

Closed

Description

@wutongyuonce

Problem

maka-cu already computes obscuringRects for windows stacked above the Computer Use target. The host stores them on the observation record. CuObservation even documents that the agent cursor should test the point it is about to draw — a control on the top edge can be visible while the middle of the window is buried. The overlay hook never receives those rects. keepElevated is true only when there is no target window id, so a covered aim point still sinks into the target window z-order and can disappear under the covering window.

Desired outcome

When the cursor aim point falls inside an obscuring rect, it stays elevated. When the point is clear and a target window id exists, it still sinks (so it does not float over the user's other windows). Missing or empty rects keep today's sink-when-window-id-exists behaviour. Elevation is decided per point, not per whole window.

Alternatives or workarounds

Always staying elevated. That was already rejected: it put the cursor over the user's own windows.

Activity

  1. wutongyuonce commented on Sep 8, 2026

    @wutongyuonce
    ContributorAuthor

    take

  2. added
    bug
    on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions