Repository navigation
Description
Problem & intent
The macOS engine's element click on a text field that advertises AXPress goes through route 1 (AXPress), and that keeps the field's existing selection. OpenAI's helper posts a real click, which collapses the selection to a caret. A model that clicks a text field and then types therefore replaces the selected text on cua, but not on the vendor.
Measured live on the MacBook, 2026-11-01 (#187's slot, cell 3 (i); frontmost Electron fixture, a selection 20+7 in its text area):
- cua: the selection was kept (20+7), with
cua/elementClickplan action, AXPress, reason advertised. - the vendor: the selection was cleared, leaving a caret at 44 (line 3, column 10), route none.
Intent: an element click on a text field means what a person's click means, so a following type_text inserts where the click put the caret and never overwrites a selection the model didn't make.
Seams: native/engine/Sources/Engine/Input.swift (the element click's route choice, around :537-541), native/engine/Sources/Engine/Routes.swift.
Constraints
- Preserve the Independence 4: cua's own native accessibility engine (replace sky) measured against a native baseline #117 contract in
docs/doperpowers/specs/2026-10-18-own-native-engine-design.mdand its route table. A route change for text roles gets a Decision Log entry naming the vendor's behaviour as the reference. - Keep Own engine brings the driven app to the front in MAWS sessions (MacBook opt-in build) #200's non-raise guarantees and route 3's delivery guard for any synthesized click this adds.
- Live proof is an attended MacBook slot on harness fixtures; the mini is never used.
- Follow-up spawned by Repair Electron background field preparation for typeText, Tab and paste #188 (parent N/A; blocked-by N/A).
Success criteria
- Find from F and the binary where the vendor's element click on a text role takes a real click (the element's center, or its activation point).
- cua's element click on a text field (AXTextArea, AXTextField, AXComboBox, a web text field) leaves the selection as the vendor's does, with a test at the route seam.
- Buttons and other controls keep AXPress (no regression in the matrix's click rows).
- One live cell repeats cell 3 (i) on cua, matching the vendor.
Open questions
Which point does the vendor's element click use for a text field: the center, or the end of the text?
Decision log
- 2026-11-01: registered from Fix Chrome background paste clipboard-read timeouts in composing@textedit rows #187's slot (cell 3), which settled Repair Electron background field preparation for typeText, Tab and paste #188's question 3 against cua.
Sources
docs/evidence/2026-10-30-macos-agent-cursor/item 187/188 records (branch fix/187-3b-slot).~/.local/share/188/phase1-report.md(candidate 3); local only.
Activity
SSFSKIM commentedon Nov 23, 2026
[ruling 1159] This is now a flip blocker, at P1. M5's catching cell is electron/frontmost/click.selection (sitting C, reading mode, no departure allowed). T8e's code reading predicts #258 is present: cua's hit-test is rooted at the application and the vendor's at the window, and AXPress keeps the selection. C FAILs until this is fixed. Its fix lane is queued after #525. If the fix is larger than one lane, it goes to design before C's sitting of record.
native matrix: #258's and #259's caret cells, the field's range read …
gate #258: its disposition, the click.selection cell beside the vendo…
Gate #258: the settled caret read, no verdict without a reading, the …
Own native engine M5: T8e, #258's and #259's caret cells and ruling 1…
SSFSKIM commentedon Nov 23, 2026
[board] in-progress: phase 1 (vendor rule, static) then build if one lane
macOS engine: #258's text-field synthesis only in the frontmost app (…
macOS engine: #258's frontmost field click rechecks the front and pos…
SSFSKIM commentedon Nov 23, 2026
[board] in-review: PR #539 (frontmost web text field click, rulings 1170/1171)
SSFSKIM commentedon Nov 23, 2026
[review-trail] reviewer-high x3: 31bc458 P1 bg unguarded mouse-down + 4 P2 -> narrowed (1170); ad20332 P1 plan-time frontmost race + P2 helper pid -> recheck carrier (1171); 21ee863 correct, no findings.
macOS engine: a click on a frontmost web text field places a caret, a…
SSFSKIM commentedon Nov 23, 2026
[board] done: Landed via PR #539 (cua 0.29.14)
SSFSKIM commentedon Nov 23, 2026
[board] done: merged #539 main 6baf3e3 (0.29.14)
Own native engine M5: main (6baf3e3, 0.29.14; #258) merged in before …
macOS engine: refuse a shared pointer with no activation standing whi…
macOS engine: refuse a shared pointer while another app is in front o…