Skip to content

macOS engine: the stale-point guard lets a click land on a same-label link that slid into a removed link's place #431

Closed

Description

@SSFSKIM

Problem

#296's stale-point guard has a gap. It is meant to stop a click from landing on something other than what the agent's screenshot showed. But when a link is removed and a different link with the same label slides into its place, the guard lets the click through, and the click lands on the other link.

Measured in #340's phase 1 (main 1e56ca40, run 44507959686, kit probe/340-qual, README at 77a00f78, cell twin):

  • The setup: two links with the same label and different destinations. The first is removed, and the second slides up into its place at the same frame.
  • The result: main kept the click, and it landed on the second link 10/10 on Chrome for Testing, Safari and Electron. That held whether the record held the link's AXStaticText or the AXLink itself.

Why. #296's re-created search accepts any node of the same role within 2 pt of the recorded frame and with the same label. A different control that takes the old one's place passes all three checks.

The risk is real in lists of same-labelled actions: "Delete", "Reply" or "Open" per row, after one row is removed.

What to do

Anchor the re-created match on the recorded control's identity, not only its role, frame and label. #340 does this for a resized text: the recorded interactive control must be alive on its own handle (CFEqual), hold the point, and contain the new text through inert elements only. Options for the same-width path:

Check

Found by #340's qualification.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    on Nov 19, 2026
  2. added a commit that references this issue on Nov 19, 2026
  3. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 19, 2026
  4. SSFSKIM commented on Nov 19, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: taken by cursor235 under ruling 880 (ahead of #337); re-created match demands the candidate be new to the record

  5. added
    status:in-review
    and removed
    status:in-progress
    on Nov 20, 2026
  6. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR open; ci-gate GREEN 44676224125; hosted qual all gates

  7. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [review-trail] Reviews of main..79496a5: reviewer-high on 3ece1a1 (6 wrong-target holes; Safari evidence then led to ruling 889's strict form); reviewer-high on 849bcda (9 findings, fixed in 38a5546); reviewer-medium on 849bcda..38a5546 (3 findings, fixed in 9028206); reviewer-medium regression-only on 38a5546..9028206 (correct, no findings; converged under ruling 891). Hosted qual: probe/431-qual README 3f97d53, all gates on CfT, Safari and Electron, 0 wrong targets on the fix. ci-gate GREEN https://github.com/SSFSKIM/cua/actions/runs/44676224125.

  8. removed
    status:in-review
    on Nov 20, 2026
  9. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #434 (cua 0.28.19)

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

    bugpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions