Repository navigation
macOS engine: a background click on transient UI is carried by the element's action and confirmed, or refused, not answered ok while route 3 closes it (0.28.28) - #476
Merged
Conversation
…s and a page's <select>; a browser view's keeps the posted click (refs #469) Ruling 1036. Chrome's site information and tab search are AXPopUpButtons that open a layer-0 bubble; #458's press made Chrome frontmost over the person's window and answered a false clickUnconfirmed (#463's run 44959835166). No generic attribute tells them from a menu before the press (#469's signal run 44970638020), but every Chrome view answers AXDOMClassList and every AppKit pop-up answers -25205 (unsupported). So outside a web page an AXPopUpButton is pressed only when AXDOMClassList is unsupported; a value read keeps main's path (kept "browserView", Chrome's app menu included, not allowlisted), any other error, no value included, keeps it too (kept "viewClassUnread"). The read comes before the enabled, expanded and window-list reads. The <select> (decided by its web area and recorded option), the combo box's arrow, ancestryUnread, the 1.5 s wait, the effect check and the restore are unchanged. Sminos-Session: cursor235#b93055dd (cua on macbook)
…s not delivered as its action (refs #469) #458's first sentence of the stale-point paragraph gains "(other than a button in a browser's own toolbar or tab strip)", in agent-cursor.md, the test's expected text and the parity docs oracle; the surface inventory's Table 3 amendment and PROVENANCE.md record it. Sminos-Session: cursor235#b93055dd (cua on macbook)
…cision Log, and the meta's new kept values (refs #469) Sminos-Session: cursor235#b93055dd (cua on macbook)
… (refs #469) Sminos-Session: cursor235#b93055dd (cua on macbook)
…p button or a page's <select>, not only a browser's toolbar as the exception (refs #469) The review of 1a1956b..88c2421 (P3): the qualifier was narrower than the code, which keeps the posted click for any browser view's pop-up button outside a page (a bubble's dropdowns too). The sentence now reads "A click on a closed pop-up button in a native app (not one of a Chromium-based app's own buttons), a web page's `<select>`, or a combo box's arrow, ...", in agent-cursor.md, the test's expected text, the parity docs oracle and the surface inventory's amendment; the Decision Log entry quotes it. PROVENANCE.md names the amendment, unchanged. Sminos-Session: cursor235#b93055dd (cua on macbook)
…d by the element's action and confirmed, or refused, not answered ok while route 3's release closes it (refs #463) With the app not frontmost, on #458's gate and agreement of the record and the hit: an AppKit AXMenuButton or AXColorWell goes as its AXPress (confirmed by a new window of the app's at the control, any layer), a right click on an AppKit element as its AXShowMenu (confirmed by a layer-101 menu), and a page's <input list> by the element click's route, its focus hold then AXPress (confirmed by Chrome's layer-999 suggestion window), each within the 1.5 s wait else clickUnconfirmed, the restore unchanged. In shared mode a right click in a web page and a Chromium view's own popup button (an AXPopUpButton whose AXDOMClassList reads, or an AXButton with AXHasPopup true) are refused as backgroundClickRefused, nothing sent; dedicated mode keeps the posted click. Meta: popUpClick.kind, and refused browserView or webArea. Sminos-Session: cursor235#b93055dd (cua on macbook)
…click or <input list> goes through its action, and a background web right click or browser popup button is refused (refs #463) Two sentences after #458's in the #296 paragraph of agent-cursor.md, kept byte-equal in the documentation test and the parity docs oracle; the surface inventory's amendment quotes the paragraph and PROVENANCE.md names it. Sminos-Session: cursor235#b93055dd (cua on macbook)
…g, and the bookmark star's residual in the tech-debt tracker (refs #463) Sminos-Session: cursor235#b93055dd (cua on macbook)
…element's action or refused (refs #463) Sminos-Session: cursor235#b93055dd (cua on macbook)
…ight click on AppKit text is refused, and the web right click and <input list> read the record and the live hit first (refs #463) The review of 1a1956b..5364c10: (1) the target app made frontmost by its own action, with no input of the person's, is recorded (popUpClick.activated), restores nothing, and answers success with a note, or adds a sentence to clickUnconfirmed, never a silent ok; (2) AXShowMenu cannot aim at the word under the click, so a right click behind on AppKit text is refused in shared mode (refused: textElement); (3) the record's web area, its own ScreenshotNode.webArea included, refuses a web right click before any live hit is needed; (4) an <input list> needs the live hit's role to be AXComboBox. Sminos-Session: cursor235#b93055dd (cua on macbook)
… the answer says when the action brought the app to the front (refs #463) Sminos-Session: cursor235#b93055dd (cua on macbook)
…the any-window confirmation in the tech-debt tracker (refs #463) Sminos-Session: cursor235#b93055dd (cua on macbook)
…ing Show Menu on an element; the AXShowMenu stand-in is dropped (refs #463) The re-review of 5364c10..6a702cc: AXShowMenu takes an element and no point, so no role test proves its menu is the point's, and a missing or late hit on recorded native text fell through to the posted right click. contextMenuPoint now refuses any right click with the app not frontmost in shared mode, text or not, page or native, hit or no hit (popUpClick.refused: rightClick, folding webArea and textElement), nothing sent; frontmost and dedicated mode keep the posted one. The contextMenu kind, contextMenuTextRoles and recordedNodeInWebArea are removed. Sminos-Session: cursor235#b93055dd (cua on macbook)
…ent is the way to its menu (refs #463) Sminos-Session: cursor235#b93055dd (cua on macbook)
…sed behind (refs #463) 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. |
SSFSKIM
added a commit
that referenced
this pull request
Nov 22, 2026
Main since 9c6368c: #476 (#463), the macOS engine's background click on transient UI, carried by the element's action and confirmed, or refused; with its agent-cursor document, the docs oracle and the tracker. Conflicts, resolved for both sides: docs/cua-api/PROVENANCE.md (main's agent-cursor row, feat's linux-engine row) and tech-debt-tracker.md (both sides' new entries). The plugin stays main's 0.28.28. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
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 #463. Version 0.28.28. Design rulings 1036, 1039 and 1043.
The bug
With the app behind the person's window in shared mode, a coordinate click answered ok on controls that open transient UI. The end of route 3's fake activation then closed that UI again before 1.8 s. Affected: TextEdit's AXMenuButton pull-down 6/6, its context menu 6/6, its colour popover 6/6, Chrome's page context menu 4/4, and Chrome's star 3/3 and profile 1/1 bubbles. With the app frontmost, all of them stay up.
The fix (behind only, on #458's gate and agreement)
<input list>gets the focus hold, then AXPress, confirmed by its layer-999 list;clickUnconfirmedafter macOS engine: a background click on a closed pop-up button (TextEdit, Script Editor, Chrome <select> dedicated) answers ok but no menu opens #458's 1.5 s wait;popUpClick.activated, plus a note for the model).backgroundClickRefused, which names the ways through (bring the app to the front, keys, or Show Menu on an element by its ID):browserView): the app menu, tab search, site information and profile;rightClick). AXShowMenu takes no point, and no role test proves an element's menu doesn't depend on where it was clicked. That's why design item 1c was dropped (ruling 1043).popUpClick.kind,refusedandactivated. The model-facing docs and their byte-equal copies are updated, plus Decision Log entries.Evidence
docs/evidence/2026-11-22-transient-ui/README.md. Kitprobe/463-measure, README §"#463 qual" at a702d13. The fix 2e2952e (engine identical to 0c370d1) ran 44983600954, against main 9c6368c in 44987874604, 240 rows each.list style, the colour well and<input list>are confirmed and up 5/5 in shared-behind and dedicated. On main they were closed or never opened.<input list>'s text now opens its list (5/5).Review. reviewer-medium ran three rounds: 1 P1 and 4 P2 findings, then 3 P2. All but two were fixed. The confirmation accepting any new app window at the control is logged in
tech-debt-tracker.md. Activation after the panel is up is #472. The review was closed after the right-click wave, which only removes a path. Each fix was shown failing without its change.swift test: 1596 run, 0 failures, 1 skipped.Limits
<input type=color>gives a false ok 5/5;<input type=date>gives a false ok both frontmost and dedicated, 5/5 each, on both engines. These are in macOS engine: in dedicated mode (and date pickers frontmost) a click on a right-click target or a page colour/date input answers ok with nothing open #475.<input list>get the element click. When no list comes, they answerclickUnconfirmedwhere main placed the caret.list stylerow reported its order restore incomplete at its time bound. The answer said so.Sminos-Session: cursor235#b93055dd (cua on macbook)