Skip to content

Return deterministic matched-target metadata for find/click success responses #170

Closed

Description

@thymikee

Summary

find "<label>" click sometimes returns success with response metadata that appears to reference the wrong element (for example app root ref/coords), even though the intended UI action happened.

Version

  • agent-device 0.7.6

Repro pattern

  1. snapshot -i
  2. find "Increment" click --platform ios --json
  3. Action succeeds visually (0 -> 1), but response metadata can include unexpected ref/coordinates (not matching target button ref in prior snapshot).

Expected

On success, return deterministic target metadata for the matched element:

  • matched ref
  • matched selector strategy
  • matched label/identifier
  • tap coordinates derived from that matched node

Why this matters

Automation harnesses rely on response metadata for observability/replay quality, not only side effects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions