Skip to content

capture/evidence ignore --target for hierarchy, AX, and screenshot artifacts #39

@RayJiang16

Description

@RayJiang16

Summary

When multiple iOS simulator targets are connected, triton capture --target <id> and triton evidence --target <id> resolve the top-level target correctly, but the nested hierarchy/AX/screenshot artifact capture still resolves triton:local. This causes those artifacts to be skipped as ambiguous_target.

Environment

  • Triton CLI: 0.1.14
  • Runtime: embedded
  • App: cn.jobmd.job
  • Connected targets: 3 iOS simulators
  • Requested target: triton:ios-simulator:66F85E78-DFDD-457E-8076-F5B9E22C95E6

Repro

TARGET='triton:ios-simulator:66F85E78-DFDD-457E-8076-F5B9E22C95E6'
triton capture --target "$TARGET" \
  --case recruit-resume-filter-interview-type \
  --output /tmp/recruit-resume-filter-interview-type \
  --json

triton evidence --target "$TARGET" \
  --output /tmp/recruit-resume-filter-interview-type-evidence \
  --name recruit-resume-filter-interview-type \
  --json

Actual

The command output includes the correct top-level target, but skips hierarchy, AX, screenshot, geometry, and archive artifacts with:

ambiguous_target: Target is ambiguous: triton:local. Available targets: ... Pass --target <id>.

Expected

All nested artifact collectors should receive and use the explicit --target value so evidence capture works in multi-target sessions.

Workaround

Run individual commands with explicit --target, for example triton screenshot --target <id> --output ..., triton snapshot --target <id> ....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions