Repository navigation
Engine: the stale-point guard keeps a hit that is itself a recorded, unmoved node at the point (recordedHit) - #308
Merged
Merged
Conversation
…e, is kept as recordedHit (refs #305) The design session's ruling 45f5e5be on #305's live check: where #296's guard would refuse an interactive hit (interactiveHit) or an element route's target (pressedOther), it keeps it when the hit is a recorded node (CFEqual, or #296's re-created identity while that node's handle is gone), its screenshot-time frame widened by 2 pt holds the point in the screenshot's space, and its frame read now widened by 2 pt holds the posted point. The chosen node's own checks run first, unchanged. RecordedHitTests: GitHub's overlay sibling, Safari's toolbar over the page view, a wrapped link text, Finder's 1-pt edge, each rule's refusals, every #296 stale class, the element route. Sminos-Session: cursor235#b93055dd (cua on macbook)
…eta's reasons and the limit (refs #305) Sminos-Session: cursor235#b93055dd (cua on macbook)
…e clipped out at the point refuses (refs #305) The coordinator's ruling on the build: the screenshot showed an element at a point only where its clipping ancestors left it showing. A recorded link scrolled under Chrome's toolbar, answered by the hit-test at a toolbar point, is refused wholly and partly clipped out; the test fails under the full-frame reading. The four #305 mechanisms stay kept. The spec's #305 entry says so, with the implementer's three readings. Sminos-Session: cursor235#b93055dd (cua on macbook)
…ed, the point in its shown frame or its nearest recorded ancestor's (refs #305) The hosted A/B on 62e9f02 (runs 42269993080, 42294564231, 42299375682) refused one still-page point: Safari's address field 8 pt above its frame, inside its toolbar item's padding. Rule 2 is now that the hit has not moved (its live frame within 2 pt of its recorded one); rule 3 lets the point lie in the hit's shown frame or, failing that, its nearest recorded ancestor's, widened by 2 pt, when that ancestor has not moved, is no area role and covers at most a quarter of the window. The meta's recordedHitBy says which carried it. The spec's #305 entry states the amendment and the opacity limits. Sminos-Session: cursor235#b93055dd (cua on macbook)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#296's stale-point guard refused ordinary coordinate clicks on still pages, and now it keeps them. On main (both 0.26.0 and 0.27.0), with nothing changed since the screenshot, cua answered
screenChangedSinceScreenshoton:The cause: the guard picked the deepest recorded node at the point, and required the live hit to be that node, its ancestor, or inside it when incomplete. Stacked content, wrapped link text and hit regions that reach past AX frames all break that.
Closes #305
The rule
From the design session's rulings 45f5e5be and a27fc57c; the spec's #305 Decision Log entry has the full text.
Where the verdict would be
interactiveHit, orpressedOtheron #282's element route, the click passes asrecordedHitwhen all three hold:What doesn't change:
nodeGone,frameMoved, the container condition and Engine: when the node budget cuts, keep what the screenshot shows (visible-first walk) #301's thin-gap rule.The new meta field
cua/stalePoint.recordedHitByrecordshitorancestor. The added cost is p95 3.4 ms on clicks that reach the rule. Plugin 0.27.1.Limits
opacity:0keeps receiving the click.opacity:0pluspointer-events:none, the click goes through to the button under it, because the AX hit-test still answers the popover's text.nonInteractiveHit, not asrecordedHit, and main does the same.visibility:hiddenis refused asnodeGone.Live proof (GitHub-hosted macOS runners, 2 reps, main 4525925 against the branch)
Evidence is in
docs/evidence/2026-11-07-recorded-hit/.recordedHitBy: ancestor; focus moved to the fieldshared-reread/swap*cells end in macOS engine: a left click into a background Chrome page is swallowed as the window's activating click, and cua reports success #282's ownbackgroundClickRefusedon both heads, with nothing pressed.recordedHitpasses matched by CFEqual, on unclipped hits. Bothancestorpasses landed on the intended element.Runs:
Tests and review
RecordedHitTests(11), which covers each of the four mechanisms, every Engine: refuse a coordinate click whose screenshot target has moved or been replaced (stale-point guard) #296 stale class, the element route and the ancestor bounds.Sminos-Session: cursor235#b93055dd (cua on macbook)