You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e1b7be6
Browse filesBrowse the repository at this point in the historyBrowse files
fix(android): carry field facts through the attrs digest and selection offsets past editability
- `get attrs --level digest` kept only the pre-#2288 semantic fields, so
`editable`/`password`/`hintShowing`/`selectionStart`/`selectionEnd`
vanished on the token-cheap route. The digest now keeps them, with a
regression covering explicit false/zero/empty and omission when unavailable.
- The helper emitted selection offsets only inside `isEditable()`, but
read-only selectable text exposes a selection too. Each nonnegative offset
is now emitted independently; -1 stays absent. Parser-to-snapshot regression
for a non-editable selectable node.
- Docs: the field-metadata notes get their own section instead of leading the
efficiency tips.
- Dropped the test-isolation commit: main already mocks
notifyIosRunnerAppRelaunched, and the lifecycle test passes without it.
`hintShowing`, `selectionStart`, and `selectionEnd` facts when available. Missing fields mean
51
-
unknown; `hintShowing` requires Android API 26 or later. Selection values are accessibility
52
-
offsets, not character counts, and cannot verify a secure value or its equality to expected text.
53
-
An explicitly empty accessibility text remains `value: ""`; missing text remains unavailable.
54
-
These facts describe the accessibility observation, which may contain a hint or masked text,
55
-
rather than privileged access to an application's backing value.
56
-
57
49
- iOS and Android share the same mobile snapshot contract: visible-first output, actionable-now refs, and hidden list content communicated via discovery hints.
58
50
- Default to `snapshot -i` for agent loops.
59
51
- Default snapshot text is an agent-facing, token-efficient view for planning and targeting actions. It is visible-first and may collapse helper/accessibility noise; use `--raw` or `--json` when you need the full provider tree.
@@ -119,3 +111,17 @@ the strategy owns which tiers it may use.
119
111
an empty tree.
120
112
- Private-accessibility recovery and `--actions` reads are simulator-specific. Physical iOS devices
121
113
have no equivalent independent semantic backend; they bound the XCTest work with a probe instead.
114
+
115
+
## Android field metadata
116
+
117
+
Android snapshot nodes and `get attrs` (including the digest response) carry the native
118
+
`editable`, `password`, `hintShowing`, `selectionStart`, and `selectionEnd` facts whenever the
119
+
accessibility tree reports them. Explicit `false` and `0` are kept; an absent field means the fact
120
+
was unavailable, not false. `hintShowing` needs Android API 26 or later.
121
+
122
+
-`value: ""` is an explicitly empty accessibility text; a missing `value` means no text was
123
+
reported. The text of an empty field is its hint on modern Android, so check `hintShowing`
124
+
before reading `value` as the entered contents.
125
+
-`selectionStart`/`selectionEnd` are accessibility selection offsets. They are independent of
126
+
`editable` (read-only selectable text exposes them too), they are not a character count, and
127
+
they do not prove that a masked or secure value equals expected text.
0 commit comments