Skip to content

[Android] After a failed open, snapshot -i header names the session app while the launcher is in front #4483

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: The failed open --relaunch com.android.settings from #4482, then snapshot -i.

Actual: The header printed Page: com.android.settings / App: com.android.settings, but the nodes were the Pixel launcher (com.google.android.apps.nexuslauncher:id/workspace, Play Store, Gmail...).

Expected: The Page/App header reflects the foreground package, or warns that the session's app is not in front. An agent reading the header assumes it is in Settings.

Activity

  1. thymikee commented on Nov 13, 2026

    @thymikee
    Member

    Triage: bug; actionable without more input from you. The snapshot header falls back to the stored session app even when another app is in front. #4499 makes the Android header use the observed foreground application window while preserving session ownership.

  2. added a commit that references this issue on Nov 13, 2026
    aa8c42e
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions