feat(ios): move the app into Split View on an iPhone Duo simulator
Merged
TH
3d ago+251+251+012345678901234567890123456789-11-11-01234567890123456789
Summary
On an open iPhone Duo simulator, gesture swipe split-view-left and split-view-right move the full-screen app into that half of Split View. Then open <bundle> puts a second app in the other half. They reuse the runner's simulator screen-edge touch; the runner is unchanged. Part of #4709 (entering Split View; leaving it stays open).
Other devices, a closed Duo, and WebDriver providers refuse with split_view_unavailable and send no touch. There the same touch would open Home or the app switcher.
Before / after
# base 758ae64 (0.21.41 CLI)
$ agent-device gesture swipe split-view-left
Error (INVALID_ARGS): Expected preset to be one of: left, right, left-edge, right-edge.
# head ee4160d, iPhone Duo simulator, iOS 27.1
$ agent-device gesture swipe split-view-right -> Flung (app in right half, Home Screen left)
$ agent-device fold closed && agent-device gesture swipe split-view-left
Error (UNSUPPORTED_OPERATION): Split View needs an iOS simulator with more than one panel and its inner panel lit (reason split_view_unavailable, dispatched no)
Validation
- Head ee4160d. Ran
node bin/agent-device.mjson an iPhone Duo simulator (iOS 27.1). Settings went right and a React Native dev client went left, each beside the Home Screen.open com.apple.mobilesafarifilled the other half, and the closed pose refused. - Later heads (to d7fb66f) change docs, refusal details, and tests only; all 21 checks pass at d7fb66f.
vitest --project unit-coreon gestures, platform-apple, provider-webdriver, contracts, command-surface, and src/commands passed: 404 files, 4117 tests.- Physical Duo and iPad simulators are refused by design.
š¤ Generated with Claude Code