Skip to content

[Android] snapshot -i drops dialog title and message text #4484

Closed

Description

@informramiz

Environment: agent-device 0.21.36, macOS (Apple silicon). Android 17 emulator (Google APIs, arm64), Settings app; iOS 27.2 Simulator (iPhone 18 Pro). Found while benchmarking agent-device against an adb/AXe stack: https://codebyramiz.com/blog/mobile-mcp-agent-device/

Steps: Settings > About emulated device > Device name (AlertDialog with an EditText). Type a name, press OK; a second confirmation dialog appears with a warning.

Actual: snapshot -i showed only the text field, the button panel, Cancel and OK (5 nodes). The dialog title ("Device name") and the second dialog's warning ("Your device name is visible to apps you installed...") appear only in the full snapshot. With -i alone, the second dialog is 3 nodes (button panel, Cancel, OK) and says nothing about what OK agrees to. The full snapshot shows the title but truncates the warning.

Suggestion: Keep a modal's title and message (non-interactive text inside the dialog) in -i output, the same way list-row labels are kept.

Activity

  1. thymikee commented on Nov 12, 2026

    @thymikee
    Member

    Fixed by #4493 (merged): Android snapshot -i now keeps an alert dialog's title and message, so the agent can read what OK agrees to. It ships in the next release. Thanks for the clear repro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions