Skip to content

fix: make snapshot --raw use target app tree on physical iOS#148

Merged
thymikee merged 4 commits into
mainfrom
codex/fix-snapshot-raw-physical-ios
Feb 28, 2026
Merged

fix: make snapshot --raw use target app tree on physical iOS#148
thymikee merged 4 commits into
mainfrom
codex/fix-snapshot-raw-physical-ios

Conversation

@thymikee
Copy link
Copy Markdown
Member

Summary

Fix raw iOS snapshots on physical devices by switching snapshot --raw traversal from live XCUIElement queries to XCUIElementSnapshot.

  • snapshotRaw now uses queryRoot.snapshot() and walks snapshot.children, matching the reliable cross-process path used by fast snapshots.
  • Added geometry-based computed hittable for raw nodes (enabled, non-empty frame, center in viewport, not occluded by later siblings).
  • Reused snapshot-based include filtering via hittableOverride and removed now-unused element-based raw helpers.
  • Touched-file count: 1 (ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests.swift).
  • Scope expanded beyond initial module: no.

Fixes #147

Validation

  • pnpm build:xcuitest

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 27, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://callstackincubator.github.io/agent-device/pr-preview/pr-148/

Built to branch gh-pages at 2026-02-28 11:49 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@thymikee thymikee merged commit 97f5925 into main Feb 28, 2026
6 checks passed
@thymikee thymikee deleted the codex/fix-snapshot-raw-physical-ios branch February 28, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

snapshot --raw returns XCUITest runner's own UI tree instead of target app on physical iOS devices

1 participant