You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- In iOS sessions, use `open <app>` for the app itself. Use `open <url>` for deep links, and `open <app> <url>` when you need to launch the app and deep link in one step.
60
60
- On iOS, `appstate` is session-scoped and requires the matching active session on the target device.
61
61
62
+
## After a session is established
63
+
64
+
Once you have opened the correct session on the correct target, stop repeating device-routing flags on follow-up commands unless you are intentionally retargeting.
65
+
66
+
Two common cases:
67
+
68
+
- Single-agent or isolated environment:
69
+
- If this agent is the only session on the device or the environment is already isolated, follow-up commands can usually omit routing flags after the initial `open`.
70
+
- Shared host or multiple agents:
71
+
- If several agents may use the same machine, always keep the session binding on follow-up commands with `--session <name>` or a sandboxed `AGENT_DEVICE_SESSION`.
72
+
- Do not keep repeating `--platform`, `--target`, `--device`, `--udid`, `--serial`, or similar target-selection flags on normal follow-up commands.
0 commit comments