Skip to content

fix: capture Android snapshot timeout evidence#591

Merged
thymikee merged 5 commits into
mainfrom
codex/android-snapshot-timeout-evidence
May 26, 2026
Merged

fix: capture Android snapshot timeout evidence#591
thymikee merged 5 commits into
mainfrom
codex/android-snapshot-timeout-evidence

Conversation

@thymikee
Copy link
Copy Markdown
Member

@thymikee thymikee commented May 26, 2026

Summary

Capture Android screenshot evidence when snapshot fails on the known UIAutomator/accessibility idle timeout path. The timeout error now keeps its existing hint and includes details.androidSnapshotTimeoutScreenshot with the PNG path plus overlay-ref metadata when a previous session snapshot is available.

Closes #588

Touched files: 3. Scope stayed within snapshot runtime handling, a focused Android timeout-evidence helper, and its daemon handler regression test. Review follow-ups tightened the evidence payload type, used the concrete overlay-ref type, normalized the timeout error once, verified the captured screenshot path, and made the fallback screenshot context explicit.

Validation

Verified with pnpm format, pnpm check:fallow --base origin/main, pnpm exec vitest run src/daemon/handlers/__tests__/snapshot-handler.test.ts, pnpm check:quick, and pnpm check:unit. A sandboxed pnpm check:unit run failed because local port binding is blocked (listen EPERM); rerunning the same command outside the sandbox passed all 213 unit files and smoke tests.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 26, 2026

PR Preview Action v1.8.1

QR code for preview link

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

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

@thymikee thymikee merged commit 87f087c into main May 26, 2026
19 checks passed
@thymikee thymikee deleted the codex/android-snapshot-timeout-evidence branch May 26, 2026 08:44
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.

feat: capture screenshot evidence when Android snapshot times out waiting for idle

1 participant