From 89e78871f23de22a4066e99edbf561f1d5a762ea Mon Sep 17 00:00:00 2001 From: PJ Date: Sun, 7 Jun 2026 17:58:18 +0530 Subject: [PATCH] fix(companion): prune the keyboard subtree from snapshots --- companion/Sources/Snapshot.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/companion/Sources/Snapshot.swift b/companion/Sources/Snapshot.swift index d70d06a..63783ce 100644 --- a/companion/Sources/Snapshot.swift +++ b/companion/Sources/Snapshot.swift @@ -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)