Skip to content

fix: recover depth-limited iOS snapshots after AX failures#706

Merged
thymikee merged 3 commits into
mainfrom
fix/ios-depth-snapshot-ax-fallback
Jun 8, 2026
Merged

fix: recover depth-limited iOS snapshots after AX failures#706
thymikee merged 3 commits into
mainfrom
fix/ios-depth-snapshot-ax-fallback

Conversation

@thymikee
Copy link
Copy Markdown
Member

@thymikee thymikee commented Jun 7, 2026

Summary

Depth-limited iOS snapshots now recover from XCTest accessibility serialization failures by returning a truncated fallback instead of failing the command outright. AX snapshot errors use the stable IOS_AX_SNAPSHOT_FAILED contract with the existing serialization-tree message prefix, while preserving XCTest details such as kAXErrorIllegalArgument.

Flat compact-interactive snapshot output is now viewport-constrained. The AX fallback uses that same visible sparse path, queries actionable controls before high-cardinality text/image content, and keeps the recovery hint in the returned payload message so agents still get remediation guidance.

Touched files: 1.

Validation

Verified with pnpm build:xcuitest for both iOS simulator and macOS runner targets. Also ran git diff --check. Earlier manual Bluesky probing confirmed depth-limited snapshots return a truncated fallback where full root capture fails.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 7, 2026

Size Report

Metric Base Current Diff
JS raw 1.1 MB 1.1 MB -3.5 kB
JS gzip 373.2 kB 372.1 kB -1.1 kB
npm tarball 484.0 kB 483.4 kB -661 B
npm unpacked 1.6 MB 1.6 MB -217 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 27.1 ms 27.2 ms +0.1 ms
CLI --help 42.1 ms 42.1 ms -0.0 ms

Top changed chunks:

Chunk Raw diff Gzip diff
dist/src/session.js -1.6 kB -374 B
dist/src/8699.js -591 B -185 B
dist/src/2415.js -471 B -108 B
dist/src/1352.js -316 B -91 B
dist/src/command-metadata.js -95 B -51 B

@thymikee thymikee force-pushed the fix/ios-depth-snapshot-ax-fallback branch from 859c817 to bee3084 Compare June 7, 2026 20:18
@thymikee thymikee merged commit aa741b4 into main Jun 8, 2026
18 checks passed
@thymikee thymikee deleted the fix/ios-depth-snapshot-ax-fallback branch June 8, 2026 08:48
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 8, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-08 08:48 UTC

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.

1 participant