Skip to content

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
SSFSKIM merged 17 commits into
mainfrom
fix/463-transient-ui
Nov 22, 2026

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 22, 2026

Copy link
Copy Markdown
Owner

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)

Evidence

docs/evidence/2026-11-22-transient-ui/README.md. Kit probe/463-measure, README §"#463 qual" at a702d13. The fix 2e2952e (engine identical to 0c370d1) ran 44983600954, against main 9c6368c in 44987874604, 240 rows each.

  • Closed by the restore on the delivered kinds: 0/35. 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.
  • Refused cells: 35/35 posted nothing and opened nothing.
  • Frontmost changes in shared-behind: Chrome's bubble buttons went from transient 2–4/5 on main to 0. The star is the one exception (macOS engine: a background click on Chrome's bookmark star answers ok while route 3's release closes its bubble (no attribute separates it from Back) #471).
  • Person's focused window: 0/175 behind rows changed.
  • False confirmed 0, false unconfirmed 0. False ok: main 86, fix 36. All 36 are on main's path (see Limits).
  • Parity: identical. The one exception is the named change: a click on an <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

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

…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)
…refusal, and the residuals' tickets #471 and #472 (refs #463)

Sminos-Session: cursor235#b93055dd (cua on macbook)
Main's tree equals #469's head e2cde75, which this branch already holds apart from
the evidence file; conflicts from the squash were resolved to this branch's side.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…sed behind (refs #463)

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

chatgpt-codex-connector Bot commented Nov 22, 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-22T06:11:59.550683Z c3d25dc 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 dfe6f44 into main Nov 22, 2026
7 checks passed
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)
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: route 3's shared-mode restore closes transient UI the click opened (popovers, tooltips, menus), answering ok

1 participant