Skip to content

macOS engine: an element click on a text field keeps its selection (AXPress), where the vendor's click places a caret #258

Done

Description

@SSFSKIM

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/elementClick plan 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

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

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

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    on Nov 1, 2026
  2. added
    priority:P1
    and removed
    priority:P2
    on Nov 23, 2026
  3. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [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.

  4. added 4 commits that reference this issue on Nov 23, 2026
  5. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 23, 2026
  6. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: phase 1 (vendor rule, static) then build if one lane

  7. added 2 commits that reference this issue on Nov 23, 2026
  8. added
    status:in-review
    and removed
    status:in-progress
    on Nov 23, 2026
  9. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR #539 (frontmost web text field click, rulings 1170/1171)

  10. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [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.

  11. removed
    status:in-review
    on Nov 23, 2026
  12. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #539 (cua 0.29.14)

  13. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: merged #539 main 6baf3e3 (0.29.14)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions