Skip to content

macOS engine: the element route's recheck after its wait refuses a window of the app's own over the point (#456) - #465

Merged
SSFSKIM merged 4 commits into
mainfrom
fix/456-recheck-overlay
Nov 21, 2026
Merged

SSFSKIM merged 4 commits into
mainfrom
fix/456-recheck-overlay

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 21, 2026

Copy link
Copy Markdown
Owner

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

Evidence

docs/evidence/2026-11-21-recheck-overlay/README.md. Kit probe/456-qual, README fdf9c192. Main edbfbd2; fix 6f1224e (the head adds only the evidence commit). Full run 44917004422, plus top-up 44921009991.

  • Popup opening during the wait, in-window rows: main pressed under the popup 18/18. The fix refused 37/38 (appWindowOverPoint, rechecked: true, by: axHit), with nothing pressed.
  • Parity: the control with no keys, a plain button, and the status bubble and hover card inside and outside are identical on both heads (8/8, 8/8, 20/20). Nothing main kept was refused.
  • Field pending-click cell: dropped as unreliable (main never landed in the window in 144 attempts). The fix's 6 in-window rows were all refused. Fakes cover the path.

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)

…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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 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-21T16:08:17.201731Z 22cd820 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.

@SSFSKIM
SSFSKIM merged commit aebd0eb into main Nov 21, 2026
6 checks passed
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.

macOS engine: the element route's post-wait recheck presses under the app's own popup (no #452 overlay guard)

1 participant