You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
macOS engine: the first observation of a freshly enabled Chromium/Electron app returns an incomplete tree (vendor's is complete) #244
#200's final live check (2026-11-01, MacBook, engine 07724139591e from fix/200-background-raisebf458b9) observed a freshly launched Electron fixture with each engine. Each fixture reported AXManualAccessibility false at start.
cua: the first observation, about 6.5 s after launch, took 1.24 s and returned 14 lines (326 chars) with no button. At +2 s it returned 27 lines (805 chars) with the button at index 13, and +5 s was the same. An earlier attempt in the same slot matched: 6 s after launch, 1.22 s, no button.
Vendor: the first observation, about 4.4 s after launch, took 66 ms and found the button at index 13.
So cua's first observation of a Chromium/Electron app whose accessibility tree is not yet enabled returns an incomplete tree. An agent that acts on that first read misses elements, or must observe again. This affects every Chromium/Electron app's first observation in a session: Slack, VS Code, MAWS itself, Chrome.
Evidence: docs/evidence/2026-10-30-macos-agent-cursor/item-200/final/ on fix/200-background-raise (the diagnostic's kit diff kept there).
Known
native/engine/Sources/Engine/Enablement.swift:
enablementAttribute follows the vendor's rule (AXManualAccessibility, else AXEnhancedUserInterface).
webAreaWaitNeeded waits after enabling until a web area has been seen in the process.
The first observation did wait (1.2 s), yet returned a tree without the button. This suggests the wait ends on an AXWebArea that exists but whose subtree Chromium is still building.
cua's documented departure is that the vendor waits on every Chromium observation (about 145 ms each) and cua only until the first web area is seen. That departure is about later observations, so it doesn't explain this first-read gap by itself.
The vendor's first read 4.4 s after launch was already complete in 66 ms. It may enable earlier (at bind or getApp) rather than at the first observation; read its helper to confirm.
To do
Read the vendor helper for when it enables and how it waits on a fresh Chromium tree. Cite the function name and address.
Choose the fix by measurement. Candidates, each with its cost on warm observations:
(a) enable at bind/getApp;
(b) after enabling, wait for a web area with content (children, or AXLoaded) rather than any web area;
Activity
#200: route-3 clicks keep the person's window order and front app (de…
#244: write the enablement attribute once per owned process; read the…
#244: Decision Log entries for write-once enablement and the role rea…
#244: adopt a settled tree only when no connection enabled the proces…
#244: the scenes CLI's electron up takes extra launch switches
#244: the kit's first-observation live check (cursor-sitting first-ob…
#244: the first-observation judge checks the warm observations and th…
#244: the first-observation judge reads the mode from every record line
#244: live check evidence: plain PASS on build ed8521553753; sonoma a…
Plugin 0.20.3: #244's write-once enablement and the app role read
SSFSKIM commentedon Nov 1, 2026
[board] in-review: PR #247: write-once enablement + app role read; live plain PASS
#171 M3: merge origin/main (f1bc48e, plugin 0.20.3) into feat/171-m3
SSFSKIM commentedon Nov 1, 2026
[board] done: PR #247 merged 2026-11-01T09:49:53Z as f1bc48e (main tree = PR head tree 15c25a53); plugin 0.20.3; residue #246
#187 (part 1): paste answers by stage, never a blind retry, with valu…
Engine: a failed AXManualAccessibility write is always uncertain, sin…
Engine: the next engine restores the Chrome EUI a SIGKILLed or crashe…