Skip to content

macOS engine: a click on a row of Chrome's omnibox popup, its permission bubble or an AppKit popover goes through the recorded row's own action (0.28.30) - #484

Merged
SSFSKIM merged 14 commits into
mainfrom
fix/453-axpress
Nov 23, 2026

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Closes #453. Version 0.28.30. Design rulings 1067 and 1069–1084.

The gap

Main refuses (appWindowOverPoint, #452) a plain left click whose point lies in one of the app's own windows over the observed one. That covers Chrome's omnibox suggestion popup, its site-permission bubble, its datalist/autofill list, and an AppKit popover such as TextEdit's colour picker. The model sees the row in the screenshot, clicks it, and is refused.

The fix

OverlayClick.swift, hooked at Input.swift before #454. The route applies only where main would answer a plain left click with appWindowOverPoint, and only when the window over the point is one of the known overlay kinds. In that case it presses the row the screenshot recorded at the point, by AXPress on the row's own recorded handle. It never posts a mouse event, never activates the app, and never re-finds the row by hit-test.

  • Row: the overlay's AXList/AXGrid child on the recorded chain at the point, or the deepest recorded node where there is no list (the permission bubble). Promotion to the list's child happens only over inert descendants (no interactive role, no AXPress) or exact duplicates of the row. The row's own frame must hold the point. Exactly one recorded overlay window may be over the point, there must be a direct parent edge from the list, and the list's children must all be recorded.
  • Coverage: every descendant of the row, framed or frameless, must have its children read and recorded. Only an explicit kAXErrorAttributeUnsupported or kAXErrorNoValue on AXChildren counts as a leaf.
  • Identity at click time, checked again right before the press: the handle is alive; role, title, description and value each compare separately; the frame is within 2 pt after the window's shift; the row is enabled. The deadline and intervention guard are rechecked after these reads.
  • Confirmation: only the overlay window leaving within 500 ms confirms. A press that times out, or a row that dies while the window stays, answers clickUnconfirmed.
  • Anything else keeps main's refusal: unread, changed, overlapping, unrecorded or an unknown kind.
  • Meta: overlayClick {window, by, kind, route: "action", confirmed, row}, and on a refusal refusedBy {role, reason}, forwarded to the MCP result.
  • Observation change (ruling 1074): each screenshot also lists the on-screen windows (owner, layer, bounds), one CGWindowListCopyWindowInfo, screenshotWindowsListedMs p50 0.6 ms. Per framed node, the record keeps whether its children were read whole. Nothing new reaches the model's view.

Evidence

docs/evidence/2026-11-22-overlay-axpress/README.md. The kit is probe/453-measure, README §"#453 qual, counted on the final head" at dd26228. Fix a8307c6 (counted run 45075999203, 281 rows) against main 5580ac2 (45061006010, 263 rows; Remove-suggestion baseline 45074375354).

Bar line Fix a8307c6 Main 5580ac2
Omnibox row delivered, confirmed, taken 18/18 refused 18/18
Popover swatch 18/18 refused
Permission prompt (behind) 20/20 (Allow granted, Block denied) refused
Datalist row refused 0/18 (actionableDescendant, #483) refused
Shared mode: frontmost / key window changed 0/172 / 0/172 0/160 / 0/160
Shared mode: window raised over the person's window route 0 at end; 4/112 transient are the #458 font pop-up, as on main; 1 row raised at end was main's own route-3 activationFailed in a parity cell (pinned: main 2/20, fix 1/20; #485) 4/106 transient
Wrong row 0/281 0/263
Omnibox typed into before the click 60/60 refused labelChanged, nothing taken refused
Remove suggestion button 18/18 refused, no navigation 18/18 refused
False ok / false confirmed 0 / 0 0 / 0
Parity outside the four kinds 18 of 19 cells identical; the 19th differs by one sample of #485, which main shows 2/20 in its pin
#443 decomove on the fix head controlGone 40/40

The AXPress spike on main (45050307595) found that a bare AXPress on the recorded row is free of activation and window movement: frontmost 0/105, raised 0/75.

Review. The parked post route (fix/453-overlay-click) was replaced by this route after its third review round (ruling 1067). This route's rounds:

swift test: 1644 run, 0 failures, 1 skipped. The service and docs tests pass.

Limits

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

…ow is carried by AXPress on that row's own handle (refs #453)

Ruling 1071. Where main answers a plain left click with appWindowOverPoint and the
window over the point is Chrome's omnibox popup, its datalist list, its permission
bubble or an AppKit popover, the row the screenshot's record holds at the point is
pressed by its recorded handle (ScreenshotNode.element; the walk already records these
rows, so the observation is unchanged). The hit #452 took only locates the overlay's
subtree in the record; the row is its deepest recorded node at the point, all such
nodes nested. At click time the handle must be alive, read the recorded role and
label, sit within 2 pt of its recorded frame after the window's shift, and be enabled;
anything else keeps main's refusal. No mouse event, no activation. Confirmed when the
overlay's window leaves or the row dies within 500 ms, else clickUnconfirmed. Meta
overlayClick {window, by, kind, route: "action", confirmed} or {..., refused}.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…s own action, and a permission prompt's Allow grants what the site asks (refs #453)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…ress on the recorded row's handle, in the Decision Log (refs #453)

Sminos-Session: cursor235#b93055dd (cua on macbook)
… button or popover item the screenshot showed goes through that row's own action (refs #453)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…ns: window-only confirmation, one recorded overlay, a whole row of a row's role, each label part, the identity again before the press (refs #453)

Ruling 1072. A row dying no longer confirms; only the overlay's window leaving does.
The screenshot must have listed exactly one window of the app's over the observed one
at the point, the one the hit reaches now (the capture now lists the on-screen windows
with their bounds and the captured window's number, one CGWindowListCopyWindowInfo,
about 0.3 ms). The row's recorded subtree must be whole (the record's existing
child-read map and subtreeRecorded), and its role one the kind's rows take, so a list's
or dialog's padding refuses. Title, description and a text's value are compared each
on its own. The identity is read again after the owner's and intervention's
preparation, just before the AXPress.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…set per call (refs #453)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…on Log, and the surface inventory's confirmation (refs #453)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…ickUnconfirmed, even when the window then leaves (refs #453)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…'s input after its last reads, announces the cursor only then, and keeps the window list of the capture attempt that succeeded (refs #453)

The review of c8858c2..e7e7842 (reviewer-medium): P1, P3 and P2.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…ecorded chain, its coverage scoped to the row and what lies at the point with absent AXChildren a leaf, and the meta names the row and what a refusal stands on (refs #453)

Ruling 1082, after the counted qualification delivered only the permission prompt.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…ted nodes, must be the list's direct child at the point, and its whole subtree and its list recorded, a leaf only an explicit absent AXChildren (refs #453)

Ruling 1083, the final wave: the focused review's 4 P1 and 3 P2, each a refusal.

Sminos-Session: cursor235#b93055dd (cua on macbook)
… delivered by the recorded row's AXPress, the datalist left refused (refs #453)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…st suggestion and a control inside a row keep appWindowOverPoint (refs #453)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…-3 activationFailed, 2/20 on main and 1/20 on the fix (#485) (refs #453)

Sminos-Session: cursor235#b93055dd (cua on macbook)
@SSFSKIM
SSFSKIM marked this pull request as ready for review November 22, 2026 23:48
@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-22T23:50:08.713116Z ac1414b Draft marked ready
ℹ️ 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 33c8dd0 into main Nov 23, 2026
8 checks passed
SSFSKIM added a commit that referenced this pull request Nov 23, 2026
Main since dfe6f44: the macOS engine's stale-point guard on a kept decoration in another control (#477, 0.28.29),
and a click on a row of Chrome's omnibox popup, its permission bubble or an AppKit popover carried by the row's own
action (#484, 0.28.30), with its agent-cursor document, the docs oracle and the macOS engine service's meta key.

Conflict, resolved for both sides: docs/cua-api/PROVENANCE.md (main's agent-cursor row, feat's linux-engine row). The
plugin stays main's 0.28.30.

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: deliver a click on an app's overlay window (Chrome's omnibox popup) to that window instead of refusing it

1 participant