Skip to content

fix: improve Android snapshot fidelity#580

Open
thymikee wants to merge 1 commit into
mainfrom
codex/android-snapshot-fidelity
Open

fix: improve Android snapshot fidelity#580
thymikee wants to merge 1 commit into
mainfrom
codex/android-snapshot-fidelity

Conversation

@thymikee
Copy link
Copy Markdown
Member

@thymikee thymikee commented May 21, 2026

Summary

Improve Android helper snapshots so snapshot -i keeps useful UI semantics while removing helper noise: row labels are promoted, duplicate structural nodes are collapsed, and hidden scroll-area hints render at the top/bottom of the relevant scroll content.

Fix Android screenshot overlay refs to use screenshot pixel coordinates, trim overly tall unlabeled row refs, and include visible unlabeled bottom-tab controls without inventing labels.

Touched 13 files; scope stayed within Android snapshot presentation, generic snapshot text rendering, screenshot overlay refs, and focused tests.

Validation

pnpm format passed.

pnpm exec vitest run src/utils/__tests__/output.test.ts passed: 35 tests.

pnpm exec vitest run src/daemon/__tests__/screenshot-overlay.test.ts src/daemon/__tests__/snapshot-processing.test.ts passed: 17 tests.

pnpm check:fallow --base origin/main passed.

pnpm check:quick passed.

pnpm build passed.

git diff --check passed.

Manual Android verification covered built-in apps, YouTube, Expensify, and the test app across multiple screens with snapshot -i, snapshot --raw, and screenshot --overlay-refs. Raw snapshots still preserve the original helper data; the compact text snapshots are less ambiguous. Test-app bottom tabs are now represented as clickable refs. The Expo debug cog is present only as anonymous non-hittable raw nodes, so it is not emitted as a clickable overlay ref.

pnpm check:unit was rerun outside the sandbox: 209/211 test files passed, 1801/1803 tests passed. The remaining failures are pre-existing/unrelated: src/utils/__tests__/video.test.ts MP4 fallback validation returns false when Swift is unavailable, and src/platforms/android/__tests__/index.test.ts times out in the .aab bundletool install test.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 21, 2026

PR Preview Action v1.8.1

QR code for preview link

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

Built to branch gh-pages at 2026-05-21 19:26 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@thymikee thymikee force-pushed the codex/android-snapshot-fidelity branch 2 times, most recently from eeb8662 to ec3e5c5 Compare May 21, 2026 19:19
@thymikee thymikee force-pushed the codex/android-snapshot-fidelity branch from ec3e5c5 to 3645382 Compare May 21, 2026 19:26
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