fix(ioscompanion): treat unresolved bridge values as transitional, never as content

This commit is contained in:
pj committed 2026-06-07 00:33:27 +05:30
1 parent a15e7a14f9
commit 8526c491e8
2 files changed
+11

No files matched your search

+6
View File
@@ -594,6 +594,12 @@ func (d *Driver) WaitForIdle(ctx context.Context, _ time.Duration) error {
if err != nil {
return nil
}
// Unresolved bridge values mean the tree is mid-update; report the
// snapshot transitional so the streak resets instead of declaring a
// half-readable screen stable.
if hasUnresolvedValues(dump) {
return nil
}
mapped, err := MapHierarchy(dump, d.screenWidth, d.screenHeight)
if err != nil {
return nil
@@ -108,6 +108,11 @@ func mapElement(element *rawElement) (treeNode, bool) {
}
value := stringValue(element.AXValue)
if value == unresolvedValueSentinel {
// Bridge state, not app content: surfacing it would show phantom
// field values in snapshots taken while the bridge catches up.
value = ""
}
label := stringValue(element.AXLabel)
editable := isEditable(element.Type)