Skip to content

macOS engine: in a background Electron app, an AX press on a modal dialog's button closes the dialog without running the button, and answers success #366

Closed

Description

@SSFSKIM

Observed (dogfood, 2026-11-11, O15 M4 Part A on the MacBook, installed MAWS = Electron, cua 0.27.2x): with MAWS behind another app, an AX press on a button inside a Radix modal dialog, and a setValue on the same dialog's search field, each closed the dialog without running the button / without the value taking, and each call reported success. With MAWS frontmost, the same dialog buttons worked by element index. Source: ~/Developer/GitHub/MAWS/plugin/cua/dogfood-feedback/2026-11-11-o15-m4-part-a-macbook.md, Problems §1.

This is a false success on the background route in an Electron (Chromium) app, and it has a visible side effect (the dialog closes). The likely cause, to verify: the AX action or value write focuses or activates the web contents in a way that the Radix dialog reads as an outside interaction (focus leaving the dialog, or a pointerdown outside), so it dismisses itself before the button's handler runs. Compare #313/#324 (WebKit focus writes) and #188 (Electron background field preparation).

Reproduce: an owned Electron fixture with a Radix (or any focus-trapping) modal dialog containing a button and a search field, window in the background; AX press the button and setValue the field; record whether the handler ran, whether the dialog closed, and what cua answered. Also the same against Chrome with the same page.

Acceptance: in the background, the button press either runs the button's handler (verified by the page's state) or is refused/unconfirmed with nothing changed; it never closes the dialog and answers ok. Same for the field's setValue (the value read back, or unconfirmed). A hosted A/B against main on the fixture.

Related: #188, #313, #206 (the same sitting's NSOpenPanel input).

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P1
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 12, 2026
  2. SSFSKIM commented on Nov 15, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: Spike first (measure on hosted runners, owned Electron fixture), by cursor235 per design 1ea561bc:733

  3. added 4 commits that reference this issue on Nov 17, 2026
  4. SSFSKIM commented on Nov 17, 2026

    @SSFSKIM
    OwnerAuthor

    Narrowed 2026-11-17 (ruling 757): the dismissal doesn't reproduce on owned fixtures (probe/366-measure smokes 44013282366, 44016387589: 0 closures in 300 rows, MAWS-parity window included), so it moved to #389 (needs a MAWS reproduction with a trace). #366 now covers the false success the kit did find: the first background AXPress in an Electron cohort returned AXError 0 and ran no handler (n=2), confounded with cold first call vs the activation hold, whose inert click landed at (-1,769), outside the window. The needless background set_value refusal is #390.

  5. added 4 commits that reference this issue on Nov 17, 2026
  6. 13 remaining items

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

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR #399 (020e45b, gate GREEN 44092049344)

  10. SSFSKIM commented on Nov 17, 2026

    @SSFSKIM
    OwnerAuthor

    [review-trail] doperpowers:reviewer-medium, c7eee72..3bb77a9 over six rounds (r1/r2/r4 findings fixed); r5 22f4d30 correct; r6 22f4d30..3bb77a9 correct.

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

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #399 (cua 0.28.6)

  13. added a commit that references this issue on Nov 17, 2026
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