Repository navigation
macOS engine: the element route's recheck after its wait refuses a window of the app's own over the point (#456) - #465
Merged
Merged
Conversation
…ndow of the app's own over the point (refs #456) The background element route (shared mode, app behind) waits for action names or a focus hold and then checks the point again. That recheck read only the tree's verdict, so a popup of the app's own that opened over the point during the wait was pressed under. It now takes a fresh timed hit-test and runs #452's rule on it (recheckedPointVerdict over guardedPointVerdict): the same axHit and popover signals, coverage check and 500 ms deadline, refusing appWindowOverPoint with #452's sentence naming the app and meta by, overWindow and the recheck's hitMs, before anything is pressed or focused. Ordinary element-route clicks read no window list and answer as before. Sminos-Session: cursor235#b93055dd (cua on macbook)
…lay guard (refs #456) Sminos-Session: cursor235#b93055dd (cua on macbook)
…and the gate's record adds up every check's costs (refs #456) Review of edbfbd2..e1a01d4 (reviewer-high), two P2s. The Chromium and Gecko field routes passed "no wait" after #359's pending-click wait (up to 300 ms), so a popup of the app's own that opened during it was never hit-tested when no later wait followed; they now recheck when that wait ran (fieldRouteFirstCheck). The gate's record now adds up ms and windowsMs across every check, since the final check after the focus hold replaces the early recheck's record; hitMs is the last hit-test's. Sminos-Session: cursor235#b93055dd (cua on macbook)
…under an own-app popup (refs #456) 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.
Closes #456. Version 0.28.25. Design ruling 965.
The bug
The element route waits before it presses: the focus hold, #359's action-name wait, or a field route's pending-click wait. After the wait, it rechecked the point with the tree alone. A popup of the app's own that opened during the wait, such as Chrome's omnibox suggestion list, was pressed under. #452's same-app overlay rule covered only the first check.
The fix
stalePointRecheck, StalePoint.swift) uses the timedhitTestOutcomeand the newrecheckedPointVerdict. That is a thin wrapper over macOS engine: a click on Chrome's omnibox popup is answered ok but lands on the page under it (frontmost and dedicated modes) #452'sguardedPointVerdict, which is unchanged. It runs at the early check after the action-name wait, and at the final check after the focus hold. The focus routes use the same gate.fieldRouteFirstCheck).msandwindowsMsacross every check, andhitMsis the last hit's. Meta:rechecked,by,overWindow.Evidence
docs/evidence/2026-11-21-recheck-overlay/README.md. Kitprobe/456-qual, READMEfdf9c192. Main edbfbd2; fix 6f1224e (the head adds only the evidence commit). Full run 44917004422, plus top-up 44921009991.appWindowOverPoint,rechecked: true,by: axHit), with nothing pressed.Review: reviewer-high on e1a01d4 found 2 P2s: the pending-click wait skipped the recheck, and the final record dropped the early check's costs. Both were fixed in 6f1224e. The re-review was clean.
swift test: 1547 run, 0 failures, 1 skipped.Limits (#464; main presses under the popup in every such case)
Sminos-Session: cursor235#b93055dd (cua on macbook)