fix(companion): prune the keyboard subtree from snapshots

This commit is contained in:
pj committed 2026-06-07 17:58:18 +05:30
1 parent 8645431221
commit 89e78871f2
1 file changed
+6
+6
View File
@@ -38,6 +38,12 @@ enum Snapshot {
}
private static func walk(_ node: XCUIElementSnapshot, into result: inout [[String: Any]]) {
// The keyboard subtree is pruned: the legacy accessibility bridge
// never exposed it, its key frames are unreliable as tap targets, and
// its shift-state churn destabilizes settle hashing.
if node.elementType == .keyboard {
return
}
result.append(serialize(node))
for child in node.children {
walk(child, into: &result)