Skip to content

macOS engine: a click recorded on an inert overlay is vouched for by the controls under it (#433) - #445

Merged
SSFSKIM merged 9 commits into
mainfrom
fix/433-overlay-target
Nov 20, 2026
Merged

SSFSKIM merged 9 commits into
mainfrom
fix/433-overlay-target

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Closes #433

What changes

#296's stale-point guard checked the element the observation recorded at the point. If that element is a transparent overlay (an inert group that pointer-events: none lets clicks through), the overlay is alive and in place, so the guard kept the click. The click then passed through to whatever control is under the overlay now: on Electron, a same-label link that had slid into a removed link's place.

The guard now also vouches for the recorded controls under an inert overlay (underlyingTargets and underlyingRefusal in native/engine/Sources/Engine/StalePoint.swift).

When the check runs. All three must hold:

  • the recorded node is inert: no interactive role, no AXPress recorded, and actions read as unknown only when a live re-read also finds no AXPress;
  • no ancestor of the node, framed or frameless, acts on its own up to its document boundary (web area or iframe);
  • the hit names no control: neither a listed role nor AXPress.

What it decides.

  • Keep if any recorded control under the overlay at the point is still there: alive on its own handle, in place and unrelabelled, or re-created in a form macOS engine: the stale-point guard lets a click land on a same-label link that slid into a removed link's place #431 accepts. The search for a re-created control starts from the nearest surviving recorded ancestor.
  • Refuse only when none is, with nodeGone, frameMoved or relabelled.
  • The refusal sentence names the situation (ruling 905): "…the point lies on an AXGroup that does not act on its own, over the AXLink "Inbox" the screenshot showed there, which a click passes through to; that control is gone or was replaced. Nothing was sent. Call getScreenshot for a new screenshot and aim again…"

New meta. stalePoint gains underlyingRole and underlyingIdentity (handle, recreated or none), carried into the press verdict.

Everything else is unchanged: any click whose recorded node has an acting ancestor (a link's text), or whose hit is interactive, gets main's verdict, reason and delivery. So are #298, #305, #330, #431 and #435.

Plugin 0.28.21 (the bump is commit 68cb34a3).

Evidence

docs/evidence/2026-11-20-overlay-target/README.md. Kit probe/433-qual, workflow 424823141, README 405cbb05; every row valid.

  • twincover. On main, Electron lands on B every row. On the final head 899c0e3b, CfT and Electron refuse nodeGone, 5/5 at each point, and the click never reaches B. Safari refuses on both heads, because its hit test sees through the overlay. On main, CfT posts nothing under an overlay (backgroundClickRefused, a refusal, not a false ok).

  • At parity with main on the final head:

    • overcontrol, an overlay over an unchanged link;
    • scrim, a click-catching backdrop (ruling 903);
    • bgbutton;
    • rebuildunder;
    • retext, plain, remount.
  • The ordinary-click set at parity on 17942ad7, 10 per head:

    There were 0 new refusals. The final head's two later commits only narrow the overlay gate and change the choice of control under the overlay, which these clicks never reach.

  • Cost (ruling 905). stickyscroll now refuses on Safari and Electron, where main's keep reached nothing. tipremount has no cost. twinunder refuses a re-rendered link among same-label links under an overlay (CfT and Electron 10/10), the only cost that loses a landing.

  • Timing. stalePoint.ms p50 is up by 0.6 to 3.8 ms; p95 by at most about 3 ms.

  • Tests. swift test in native/engine: 1499 tests, 0 failures, 1 skipped. OverlayTargetTests has 24. Mutation passes caught every mutant in every wave.

Limits

Review

  • reviewer-high on 0f79602f: 6 findings. Two need stacking information and went to Stale-point guard under an inert overlay can't see stacking: a control slid over the target, or an overlapping sibling, gets the click #442. The rest were fixed in 2a1b0368: two regressions, unknown candidates, press meta, and ruling 905's sentence.
  • reviewer-medium, regression-only, on 2a1b0368: 3 link-text regressions, fixed in d514da6f.
  • reviewer-medium, regression-only, on d514da6f: 7 items, 5 of them link-text refusals. The content-of-control path was cut instead (ruling 909), in 17942ad7.
  • reviewer-medium, diff-only, on the narrowing: 2 gate gaps, fixed in 5f873e54.
  • Hosted batch B: found bgbutton, fixed in 899c0e3b (keep if any recorded control under the point is unchanged).

Sminos-Session: cursor235#b93055dd (cua on macbook)

… recorded control beneath it (refs #433)

The stale-point guard kept a click whose recorded node was a transparent overlay alive on its own handle, though the
click passed through to whatever lay under it now (#431's twincover: a same-label link slid into a removed one's place).
When the node does not act on its own and the hit names no control, the deepest recorded control at the point that is
not the node's ancestor is judged as #296 judges a recorded node: its handle in place and unrelabelled, or a re-created
handle #431's record accepts. Meta gains underlyingRole and underlyingIdentity.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…es in it, keeps unknown controls, and searches from a surviving ancestor (refs #433)

The review of 0f79602: an inert decoration reparented from a replaced link into another no longer vouches for the new
one, while a link's unchanged text keeps main's verdict whatever lies behind it; a control of unknown actions beneath
is judged and never taken as re-created; a re-created control is looked for from its nearest surviving recorded
ancestor; the element route's verdict carries the check into the meta; and the refusal names the inert layer over the
changed control, with a re-observation and a new aim as the remedy.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…arture from its control, walking the node as found now (refs #433)

The regression review of 2a1b036: a text re-created outside its link's frame is walked on its new handle; a walk that
cannot finish (a parent or role unreadable) keeps the point as main does, and the control's own children list counts as
inside; content under a wrapper whose actions did not read belongs to its nearest recorded control above it. The check
never refuses where the hit is the node or its own recorded control, alive and in place.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…cting ancestor in its document; content of a control keeps main's verdict (refs #433)

The regression review of d514da6: every round on the content-of-control path found new refusals main does not make,
so it is withdrawn. The record carries whether an ancestor below the node's document acts on its own (past wrappers of
unknown actions, framed or frameless, never across a web area), and only a node with none is judged at the control
beneath it; a node whose actions were unknown at the observation and acts now is its own target. Decoration
reparenting stays main's, for a ticket of its own.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…AXPress and for a node that recorded it (refs #433)

The review of 17942ad: a clickable group's hit names a control for the #433 gate, main's classification unchanged; a
node whose recorded actions included AXPress is never inert though its role did not read.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…ntrol under it is still there (refs #433)

Hosted batch B on 17942ad (run 44733158011, bgbutton): an unrelated button beside the link in one list, later in
AXChildren, both under the veil and the point, was removed; the depth tie took the button and refused clicks main lands
on the link. Every innermost recorded control under the point is now judged, and the point is refused only when none
is still there.

Sminos-Session: cursor235#b93055dd (cua on macbook)
Sminos-Session: cursor235#b93055dd (cua on macbook)
Sminos-Session: cursor235#b93055dd (cua on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T14:52:16.494450Z 29bdba9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sminos-Session: cursor235#b93055dd (cua on macbook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stale-point guard keeps a click recorded on a click-through overlay, which lands on a different control under it

1 participant