Repository navigation
Engine: a background click into a Chrome page is element-routed or refused on a shared desktop, delivered on a dedicated one, and never silently lost (refs #282) - #284
Merged
Conversation
…ed or refused in shared mode, posts the inert click first in dedicated mode, and answers clickUnconfirmed where it may only have activated the window (refs #282) The connection's ping names its device mode (desktop: shared | dedicated), kept per connection. A route-3 left pointer meeting an activation that clicked no AXActivationPoint is refused before subtype 1 or any join in shared mode when it points into a Chromium web area (backgroundClickRefused, nothing posted), or carried by the hit's AXPick/AXPress for a plain click; dedicated mode takes the inert click early and skips the delivery guard and after-action watch for that action; a consuming down into a view not known to accept first mouse answers clickUnconfirmed. rearmed only for a shared-mode pointer into a known-accept view (Chromium's native views once a web area was seen). Sminos-Session: cursor235#b93055dd (cua on macbook)
…n Linux, the service names it in each connection's ping, doctor reports it (refs #282) Sminos-Session: cursor235#b93055dd (cua on macbook)
…alk reached the window with every role and parent read; an incomplete walk is a possible web area, refused or element-routed in shared mode (refs #282) The review of 739346e..8e85909 (one P2): insideWebArea answered false for a failed parent read, an unreadable role or an exhausted bound, which classified a background page hit as accepting first mouse. webAreaWalk is now inside, outside or incomplete; a Chromium hit not established outside every web area is possibleWebArea. Sminos-Session: cursor235#b93055dd (cua on macbook)
…ly when its AXWindow ancestor is the target window (refs #282) Found live on the hosted runner (probe/282-hosted): AXUIElementCopyElementAtPosition of a window element answers kAXErrorIllegalArgument, so the coordinate click's, the drag's and the coordinate scroll's hit was always nil, and shared mode posted a background Chrome click as clickUnconfirmed instead of refusing or element-routing it. A hit in another window, or one whose ancestry cannot be read to a window, stays nil; a hit that is itself the window or application is an incomplete web-area walk. Sminos-Session: cursor235#b93055dd (cua on macbook)
…t of controls, refuses text entry and editable regions, and answers clickUnconfirmed when a checkbox's or radio button's value does not change (refs #282) The hosted A/B (run 42130746324) found AXPress on a page's AXTextArea answering success and doing nothing. The design session's ruling (1ea561bc fe37aee9): AXButton, AXCheckBox, AXRadioButton, AXLink, AXPopUpButton, AXMenuItem, AXMenuButton, AXDisclosureTriangle, AXTab (no AXToggle: Chromium exposes toggles and switches as AXCheckBox); anything else, or a hit with an AXEditableAncestor, is backgroundClickRefused; a value-checked press polls its AXValue every 20 ms for up to 500 ms. The first-call paragraph says which clicks are carried. Sminos-Session: cursor235#b93055dd (cua on macbook)
…ted control through plain children, and re-reads a fresh Chrome's late action for up to 2 s before refusing (refs #282) The hosted probe (run 42131623237) showed the missing AXPress is Chromium's accessibility enablement coming up (1.6 to 1.7 s after the engine's write), and a button refused at its label's point. The design session's bounds (1ea561bc 7a6a3638): the walk passes only AXStaticText, AXImage and AXGroup, refuses at an editable element, another role, the AXWebArea or an unread ancestry; the re-read runs every 100 ms for up to 2 s where the last enablement write is under 10 s old or no web area was seen, posting nothing; elementClick names the pressed role and whether it was the hit. Sminos-Session: cursor235#b93055dd (cua on macbook)
…lkStopped on a refusal), roles only (refs #282) Sminos-Session: cursor235#b93055dd (cua on macbook)
…Unconfirmed, and the chosen control is requalified after the re-read before anything is posted (refs #282) The re-review of c768d2b..1c8f222 (two P2s): a checkbox whose first AXValue read failed was pressed and answered success; and the 2 s re-read checked only the control's actions, so a node that changed during the wait was pressed under its old role. Now the press goes ahead and answers clickUnconfirmed without a baseline, and webAreaPressDecision requalifies the control (allowlisted role, not editable, ancestry read to the AXWebArea) and takes its action and value check under its current role, refusing with nothing posted otherwise. Sminos-Session: cursor235#b93055dd (cua on macbook)
…n or any enablement write attempt, failed or not, and the observation reports the write and its AXError (refs #282) The final hosted A/B (run 42134748488): on Chrome for Testing the enablement write fails, so freshness keyed on a successful write never opened and every shared-mode click within a second of the observation was refused without the re-read, though Chrome reached its complete mode 1.1 to 1.6 s after the observation. EnablementAccess.write now answers the AXError; WebAccessibility.freshSince is the later of the first observation and the last write attempt; enablementWrite and enablementWriteError ride in the observation's diagnostics. Sminos-Session: cursor235#b93055dd (cua on macbook)
…ick; shared mode element-routes or refuses; dedicated delivers once) Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM
marked this pull request as ready for review
November 6, 2026 01:05
Codex Review SummaryThis 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 was referenced Nov 6, 2026
Owner
Author
|
Update from #287: the configs this PR's Limits named as unmeasured are now measured (hosted macOS, main's engine at 51b473f, 2 reps).
Findings: #287 (comment) |
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.
Summary
A left click into a background Chrome page never reached the page, and cua reported success (#282). Route 3 posted no click at Chrome's activation point, which lies outside its frame, so the agent's own mouse down was the first one after the fake activation. AppKit took that down as the window's activating click: it made the window key, then asked the view whether it accepts first mouse. Chromium's web content answers no, so neither the down nor the up reached the page. This had been so since 5941e98 (2026-10-20).
The fix applies the owner's rule for input an app ignores, the Linux engine's device mode: on a shared desktop, refuse it; a dedicated desktop may bring the window forward. A hosted macOS runner proved it live (below).
Closes #282
What changes
Shared mode (the default):
elementClickrecords the walk (walk,pressedRole,pressed,walkStopped).clickUnconfirmed.backgroundClickRefused: "<App>'s web page does not accept a background click; bring<App>forward or use a dedicated desktop". Where the control has no action, the sentence adds that the app should be observed first. Nothing is posted and no arm is left set.Dedicated mode. Left pointers post the early inert click right after subtype 1, so the down meets a key window and is delivered. That action runs without the delivery guard or the after-action watch, as on Linux's foreground route.
Everywhere. A pointer whose own down consumed the arm (
activationClickKind {action, consumedByAction}), in a view not known to accept first mouse, answersclickUnconfirmed(an error, with the full meta). It never answers plain success.Which views are known to accept first mouse. A Chromium-family hit (
BrowserCrApplication,AtomApplication) shown to lie outside any AXWebArea by an established walk, once a web area has been seen in the process; Chrome's toolbar is one. Everything else in a Chromium process is a possible web area: an incomplete walk, a missing hit, or a walk before any web area was seen.The hit-test. The coordinate hit-test asked the window element, which answers −25201, so the hit was always nil; that also made main's sparing area a single point. It now asks the application element, and keeps the hit only when its first AXWindow ancestor is CFEqual to the target window.
The mode.
desktopModeForresolvesCUA_DESKTOP_MODE, else engine.json'sdesktop, elseshared, now for macOS sessions on cua's engine too.ping {clientApiVersion, desktop}. The engine keeps it per connection, and doctor reports it.Docs and diagnostics.
docs/cua-api/agent-cursor.md), the surface inventory, PROVENANCE, and the spec's Decision Log entry for macOS engine: a left click into a background Chrome page is swallowed as the window's activating click, and cua reports success #282 (items 1–14).enablementWriteandenablementWriteError.Live proof (hosted macOS runner)
docs/evidence/2026-11-05-chrome-first-mouse/holds run https://github.com/SSFSKIM/cua/actions/runs/42137289452, two reps that agree in every cell.Limits
clickUnconfirmedthere.Tests and review
BackgroundPointerTestshas 26. Service: 36 of 36. The JS suites touched pass.Sminos-Session: cursor235#b93055dd (cua on macbook)