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
'Anti-pattern: snapshot -i followed by snapshot -i | grep ...; prior refs stay valid until app state changes, and --force-full is the explicit full re-read.',
170
170
'Truncated text/input preview: expand first with snapshot -s @e12, not get text.',
171
171
'React Native apps: read help react-native for Metro, DevTools routing, and RN-specific blockers; use react-native dismiss-overlay for LogBox/RedBox overlays.',
172
-
'Android RN/Expo Metro: direct Android localhost URL opens with a port auto-ensure adb reverse when supported; manual adb reverse tcp:<port> tcp:<port> remains harmless before app launches or unsupported flows.',
172
+
'Android RN/Expo Metro: direct Android localhost URL opens with a port auto-configure host reachability.',
173
173
'Expo Go/dev clients: use the provided URL when given; on iOS prefer open "Expo Go" <url>; Android URL opens infer the foreground package for logs/perf when possible.',
174
174
'Install flows: install/install-from-source first, then open the installed id with --relaunch.',
175
175
'Text: fill \'id="field-email"\' "qa@example.com" replaces; type appends after press.',
@@ -349,7 +349,7 @@ React Native dev loop:
349
349
agent-device find "Home"
350
350
Do not use agent-device reload. Use open --relaunch for native startup reset.
351
351
React Native apps: use help react-native for Metro/Fast Refresh, DevTools routing, and RN-specific blockers; use react-native dismiss-overlay for LogBox/RedBox overlays.
352
-
Android RN/Expo Metro: direct Android URL opens to localhost/127.0.0.1/[::1] with a port auto-ensure adb reverse when supported; manual adb reverse tcp:<port> tcp:<port> remains harmless before app launches or unsupported flows.
352
+
Android RN/Expo Metro: direct Android URL opens to localhost/127.0.0.1/[::1] with a port auto-configure host reachability. Manual adb reverse tcp:<port> tcp:<port> is only needed for app/package launches or unsupported flows where the app cannot reach local Metro.
353
353
Expo Go is a host shell. Use a provided project URL instead of inventing a bundle id; if no URL is provided but a target/app name is provided, open that target and do not inspect project files to find one. On iOS, prefer host + URL when the host shell is known because direct URL open can report success while leaving the runner/shell focused; verify with snapshot -i after opening:
354
354
agent-device open "Expo Go" exp://127.0.0.1:8081 --platform ios
355
355
agent-device snapshot -i --platform ios
@@ -510,7 +510,7 @@ React Native dev loop:
510
510
agent-device metro reload
511
511
agent-device find "Home"
512
512
Do not use agent-device reload. Use open --relaunch for native startup reset.
513
-
Android RN/Expo Metro: direct Android URL opens to localhost/127.0.0.1/[::1] with a port auto-ensure adb reverse when supported; manual adb reverse tcp:<port> tcp:<port> remains harmless before app launches or unsupported flows.
513
+
Android RN/Expo Metro: direct Android localhost URL opens with a port auto-configure host reachability. For app/package launches, use help react-native if the app cannot reach local Metro.
514
514
Expo Go/dev clients are host shells. Use provided project URLs, verify with snapshot -i after opening, and ask instead of inventing app ids or URLs. Help workflow owns the full Expo URL command shapes.
515
515
516
516
Overlays and busy RN UIs:
@@ -619,7 +619,7 @@ Coverage:
619
619
Navigation, forms, empty/error/loading states, offline or retry behavior, permissions, settings, accessibility labels, orientation/keyboard, and obvious performance stalls.
620
620
React Native warning/error overlays can be real findings or test blockers. Capture them, use react-native dismiss-overlay if unrelated, re-snapshot, and report them.
621
621
Expo Go/dev-client shells: use the provided exp:// or dev-client URL and record whether the shell, project load, or app UI is being tested. On iOS dogfood, prefer agent-device open "Expo Go" <url> when Expo Go is the known shell, then snapshot -i to confirm the project UI rather than the runner splash.
622
-
Android RN/Expo Metro: direct Android URL opens to localhost/127.0.0.1/[::1] with a port auto-ensure adb reverse when supported; manual adb reverse tcp:<port> tcp:<port> remains harmless before app launches or unsupported flows.
622
+
Android RN/Expo Metro: direct Android localhost URL opens with a port auto-configure host reachability.
- Keep using `snapshot`, `press`, `fill`, `logs`, `network`, and `perf` for device/app runtime evidence. Use `react-devtools` for React internals.
604
604
- For React Native apps, overlays, Metro/Fast Refresh blockers, and routing to React DevTools or debugging evidence, start with `agent-device help react-native`.
605
605
- On Android, use `alert get`, `alert wait <short-ms>`, `alert accept`, and `alert dismiss` for runtime permission prompts and native alerts. On iOS, use the same alert commands for XCTest alerts, app-owned modal popups with native blocking markers, and blocking system dialogs. Do not use `settings permission` to answer a dialog already on screen; reserve it for setup or resetting permission state before a flow.
606
-
- React Native development builds can connect to the DevTools daemon on port 8097. For Android emulators or physical devices, run `adb reverse tcp:8097 tcp:8097` if the app cannot reach the host. Direct Android `open` URL targets for local Metro hosts with a port auto-ensure the matching reverse when supported; for app launches or unsupported flows, `adb reverse tcp:8081 tcp:8081` remains harmless.
606
+
- React Native development builds can connect to the DevTools daemon on port 8097. For Android emulators or physical devices, run `adb reverse tcp:8097 tcp:8097` if the app cannot reach the host.
607
+
- Direct Android `open` URL targets for local Metro hosts with a port auto-configure host reachability. For app/package launches or unsupported flows, run `adb reverse tcp:8081 tcp:8081` if the app cannot reach local Metro.
607
608
- For Android and iOS sessions connected through a remote bridge profile, `react-devtools` registers a lease-scoped companion tunnel to the sandbox-local DevTools daemon at `127.0.0.1:8097`. Android bridge profiles use the bridge-owned remote `adb reverse` mapping; iOS bridge profiles use the bridge-owned wildcard Metro host tunnel. The CLI keeps the companion alive until `agent-device react-devtools stop` or `agent-device disconnect`.
608
609
- For remote iOS bridge sessions, open the app once to create the bridge session, run `agent-device react-devtools start`, then relaunch the same bundle id with `agent-device open <bundle-id> --platform ios --relaunch` before `wait --connected`. React Native attempts the legacy DevTools websocket during JavaScript startup, so starting DevTools after the first launch can miss that connection attempt.
609
610
- Remote bridge React DevTools assumes the React Native-bundled DevTools behavior in React Native 0.83+. Older browser/Chromium DevTools workflows are not assumed to exist inside remote sandboxes. Expo projects should be verified against the SDK's bundled React Native version before relying on this path; this release does not claim a separately verified Expo SDK version.
0 commit comments