mirror of
https://github.com/lahfir/agent-desktop.git
synced 2026-08-10 09:03:49 +00:00
accname.rs previously reduced NameEvidence with a 2-way title-or-description fallback despite the trait already exposing 7 evidence fields. Implement the documented KTD6 precedence (explicit label -> labelled-by text -> native title -> static-role value -> aggregated child label -> placeholder -> description last) as compute_name/compute_description over NameEvidence, plus a join_child_labels aggregation primitive. Migrate macOS's resolve_element_name to a thin wrapper that gathers raw NameEvidence (name_evidence_impl) and reduces it via core's compute_name, removing the inline fallback chain it used to own. name_evidence_impl now reads AXTitleUIElement (labelled-by), AXPlaceholderValue, and aggregates multiple child labels via join_child_labels instead of returning only the first match. resolve_search.rs, resolve_classify.rs, and chain_menu_steps.rs need no changes: they already consume resolve_element_name's return value and now get the correct precedence for free. |
||
|---|---|---|
| .. | ||
| core | ||
| ffi | ||
| linux | ||
| macos | ||
| windows | ||