Skip to content

macOS engine: a null subrole marks a non-text group 'value unread', so Finder's toolbar group is not pruned (#501 regression) #525

Closed

Description

@SSFSKIM

Problem (regression shipped on main, ruling 891)

In Finder's toolbar, cua's tree has an extra node, container Value: value unread, Secondary Actions: Move previous, Remove from toolbar, wrapping button Search. The vendor prunes that group, and the extra node shifts the next 13 lines of the full and before goldens.

Cause, to be confirmed first: #501 (merged at 0d19fdf) made a null AXSubrole classify as failed. A non-text-entry role is then closed and not secure, so its node gets valueUnread. The renderer prints "value unread" for it and counts it as descriptive (src/services/engine/render.mjs:305, descriptive includes node.valueUnread), so it is never pruned. Confirm this against the raw node (subrole null on the toolbar group) before fixing.

Artifacts: ~/.local/share/cua-m5-pilot/b-1/m5-sitting-b-pilot-1/sitting/{vendor,cua}/texts/<scene>/{before,full,later,diff}.txt, logs/diff.log (M5 pilot B, run 45226949355 at feat/117-m5 e144990, engine build c83131f0). Blocks the default-engine flip (#506, ruling 1156).

Fix (ruling 1156): fix the cause, not with a role list on top

A missing subrole on a role that can't be a secure field is a known absence. AXSecureTextField occurs only on the text-entry roles (presumedSecureRoles). The invariant: a node that could be a secure field and whose classification is unread still says "value unread", so #405 stays intact. Any other role with a null or failed subrole is not marked value-unread on that account.

Acceptance

  • Tests: an AXTextField and an AXComboBox with a null or unread subrole both still say "value unread"; an AXGroup with a null subrole does not, and is pruned like the vendor's.
  • The Finder toolbar golden matches the vendor.
  • swift test and the release build pass. B is re-judged on the fixed engine.

Activity

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

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: building from main 893e19d

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

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR #533 (AXGroup allowlist, rulings 1156/1166)

  7. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [review-trail] reviewer-high 893e19d..271aa18: P2 stale role before Markdown read + P3 DL wording -> fixed caac3a9/f9383468; re-review 271aa18..f938346 correct, P3 diagnostics count logged in tech-debt (faa2d9a).

  8. removed
    status:in-review
    on Nov 23, 2026
  9. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #533 (cua 0.29.13)

  10. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: merged #533 main f2e179b (0.29.13)

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