Repository navigation
Description
Problem
cua's macOS engine turns on Chrome's full accessibility mode and never turns it off. That mode stays for the life of the Chrome process, against the engine's own release rule (Enablement.swift's header: the engine "releases what it set ... a web app left in full-accessibility mode after cua is done is interference (A3)").
#288's hosted spike (probe/288-hosted, runs https://github.com/SSFSKIM/cua/actions/runs/42161269408 and https://github.com/SSFSKIM/cua/actions/runs/42162367095; Chrome for Testing 156 on macOS 26.6.2, two reps alike) found the cause.
- Chrome lists AXEnhancedUserInterface, not AXManualAccessibility. Chromium's source has no AXManualAccessibility at all; it is Electron's attribute. So
enablementAttributepicks AXEnhancedUserInterface (EUI) for Chrome. - Chrome answers that write with -25208, yet acts on it. Chrome's application class (chrome/browser/chrome_browser_application_mac.mm L433–472) debounces it: after 2 s it turns on complete mode and the screen-reader flag. The attribute then reads true.
- The engine treats -25208 as a failed write (
enableReporting:guard written == .success), so it never owns the attribute and never writes it back. Measured: EUI still read true, with complete mode on, after the connection closed, after the engine exited on SIGTERM, and 3 s later. - The person's desktop is changed while that holds. With EUI true, a scripted move or resize of Chrome's window animates: 3–5 frames, settling in 80–156 ms, against 2 frames and 10–90 ms without it. Chrome also runs its screen-reader mode, with inline text boxes, for the whole browser process.
- Writing EUI false removes complete mode within 4–150 ms.
#282's and #283's texts, and the observation's enablementWriteError, describe the -25208 as the AXManualAccessibility write failing. It is the EUI write, and it takes effect.
Intent
Own and release what the engine turned on: an EUI write that answers -25208 counts as set and owned when the attribute then reads true, so the release at the last observing connection's close (and at shutdown) writes it back to false. Keep the A3 rule that a value that read true before the engine's write is not the engine's.
Constraints
- The vendor runtime stays unmodified. Release only what the engine itself turned on.
- macOS engine: a left click into a background Chrome page is swallowed as the window's activating click, and cua reports success #282's and macOS engine: a background Chrome text-field click in shared mode focuses the field through AXFocused, and says the caret was not placed #283's routes need complete mode while a connection observes Chrome. Releasing between connections means each new connection pays Chrome's 2.2 s debounce again; Shared mode: first click into a freshly observed background Chrome waits up to 2 s for complete accessibility (and pre-observation toolbar counts as web area) #288 owns the timing.
- Correct the docs that misattribute -25208: the Enablement.swift header, macOS engine: a left click into a background Chrome page is swallowed as the window's activating click, and cua reports success #282's and macOS engine: a background Chrome text-field click in shared mode focuses the field through AXFocused, and says the caret was not placed #283's Decision Log entries, and the evidence READMEs, as a note.
- Spawned by Shared mode: first click into a freshly observed background Chrome waits up to 2 s for complete accessibility (and pre-observation toolbar counts as web area) #288 (its spike). Relates to Shared mode: first click into a freshly observed background Chrome waits up to 2 s for complete accessibility (and pre-observation toolbar counts as web area) #288. No parent and no blocker (consciously N/A).
Success criteria
- Unit tests: a write answering -25208, then reading true, is owned and released; a value that read true before is not.
- A hosted check: after the last connection closes, Chrome's EUI reads false, complete mode is gone (a checkbox loses AXPress), and the window moves without animation.
Activity
SSFSKIM commentedon Nov 6, 2026
[board] in-progress: taken with #288 in one PR (design session ecc2143d)
Engine: Chrome's -25208 EUI write is owned and released, at end_task,…
Engine: the EUI grace runs 30 s from Chrome's last observation or inp…
0.25.0 (refs #292, refs #288)
Engine: the stop enters a stopping state before it resets, and a grac…
end_task waits, bounded, for endTask's answer before it closes, and t…
Evidence: #292/#288's live check on a hosted macOS runner (end_task, …
Spec: #292's and #288's Decision Log entries record the live proof (r…
SSFSKIM commentedon Nov 6, 2026
[board] in-review: PR 295
Engine: cua owns and releases Chrome's AXEnhancedUserInterface (end_t…
SSFSKIM commentedon Nov 6, 2026
[board] done: Landed via PR #295 (0.25.0)
Spec: #293's Decision Log entry, #292's SIGKILL limit amended, and pl…
Engine: the next engine restores the Chrome EUI a SIGKILLed or crashe…
Engine: the enablement's idle release comes after 5 minutes, not 30 s…
macOS engine: a Chromium app is acted on only once its accessibility …