Repository navigation
fix(mobile): read Compose Multiplatform text fields on iOS - #1427
Merged
Merged
Conversation
An empty Compose Multiplatform field on iOS reports no placeholder; it appends the text it draws to its label, so "Name, Ada Lovelace" read as a field holding a name and the examples nightly's agent tried to clear it. Read that trailing text as the field's placeholder when it is the field's only child. It applies once the field reads editable: agent-device's XCTest tree reports it so today, its simulator AX tree once callstack/agent-device types text-entry-trait elements (follow-up bump). #1410 refused fill and clear on anything but a text input role, which broke the Compose Multiplatform and Flutter iOS examples: agent-device 0.21.33's simulator AX tree reports their fields as an unclassified Other. Type into an Other that holds nothing but text; a container of controls stays refused.
kacperkapusciak
requested review from
okwasniewski and
szymonrybczak
as code owners
October 28, 2026 09:08
Contributor
🟢 e2e android agent: 20 passed24 agent steps · 15 replayed from cache · 41 model calls · 240.6k tokens (77% cached) · $0.0189 All 20 tests in 1 file
e2e 0.21.3 · 6m 58s · android-emulator · run artifacts |
Contributor
🟢 e2e ios: 55 passed, 1 skippedAll 56 tests in 7 files
e2e 0.21.3 · 6m 12s · ios-simulator · run artifacts |
Contributor
🟢 e2e android: 57 passed, 1 skippedAll 58 tests in 7 files
e2e 0.21.3 · 8m 24s · android-emulator · run artifacts |
Contributor
🟢 e2e ios agent: 21 passed, 1 skipped25 agent steps · 6 replayed from cache · 74 model calls · 450.5k tokens (84% cached) · $0.0285 All 22 tests in 1 file
e2e 0.21.3 · 11m 59s · ios-simulator · run artifacts |
This was referenced Oct 30, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the iOS Kotlin Multiplatform job in last night's examples nightly (run 40592743298). Also fixes the iOS Kotlin Multiplatform and Flutter
fillfailures that #1410 brought tomain.What changed
packages/mobile/src/nodes.ts). On iOS, an empty Compose Multiplatform field reports no placeholder. It adds the text it draws to its label instead, as"Name, Ada Lovelace", over oneStaticTextchild. The agent read that as a filled field and tried to clear it until the step timed out. Now, on an empty, editable iOS field, a trailing", <text>"that matches the field's only text child becomes theplaceholderattribute, and that child is left out. The agent seestextbox "Name" testid="name".fill/clearguard (packages/mobile/src/surface.ts). fix(mobile): revalidate input bindings before fill and clear #1410 refused every role except textbox, searchbox and combobox. agent-device 0.21.33's simulator AX tree reports Compose Multiplatform and Flutter fields as an unclassifiedOther. So the guard now also lets through an iOSotherthat holds a value or only text, and checks again against the snapshot taken just before typing. A childless, valuelessother(a React NativePressable) and a container of controls are still refused.setup.md, and a changeset are updated.The placeholder logic needs the field to read as editable. agent-device's XCTest tree reports it that way already. Its simulator AX tree, which the nightly uses, will only do so after callstack/agent-device#4008. A follow-up PR bumps
agent-deviceonce that ships.Verified
Ran it locally: yes
examples/with-kotlin-multiplatformon an iPhone 18 Pro simulator (iOS 27). The suite ran with packages packed frommainand from this branch, both with agent-device 0.21.33, usinge2e run --target ios --no-cache --retries 0 --video.main: 2 failed, 3 passed.This branch: 5 passed, including both agent tests with live model calls. The same suite also passes 5 of 5 against the agent-device build from #4008.
Not run locally:
@e2e-dev/testbed, because another checkout was holding its port, and the mobile benchmark. The mobile benchmark runs in themobileworkflow on this PR.greets-main.mp4
greets-branch.mp4