> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# subflows/connect-dev-client.yaml

[Source](https://github.com/leapgame/leap-sim-piano/blob/f794b594016038c483e2d20b6af56aea0ae1b982/.maestro/subflows/connect-dev-client.yaml)

```yaml
appId: ${APP_ID}
---
# Debug build only: point the Expo dev client at Metro and get past what it puts on top of the app.
# (The Release app has no dev client and never runs this; see launch-app.yaml.)
#
# - The link opens the project straight away, so the launcher's server list never shows.
# - `__expo_disable_fab` removes the floating "Tools" button: it is draggable and can sit on top of a
#   row's Play button and swallow the tap. `__expo_disable_onboarding` / `__expo_disable_auto_launch`
#   keep the developer-menu intro and the auto-opened menu away.
- openLink: "${APP_ID}://expo-development-client/?url=http%3A%2F%2Flocalhost%3A${METRO_PORT}&__expo_disable_fab=1&__expo_disable_onboarding=1&__expo_disable_auto_launch=1"
# The link uses the app's own scheme (its bundle id), not `magicpiano://`: another dev shell on the same
# simulator may register a scheme of its own, and a link must open this app.
# What the link can leave on screen, each step only when it is there: iOS asks "Open in <app>?" before a
# custom-scheme link opens an app (always on a simulator that has not opened one yet, and whenever the app is
# not already in front); a Metro / native runtime that was not ready yet shows a red "runtime not ready" screen
# (reload it); the very first dev-client launch of an install can still show the menu intro (it never returns).
#
# Each is a hierarchy request, and right after the link the dev client is still starting: the XCTest driver can
# answer with a 500 (kAXErrorInvalidUIElement). Maestro does NOT retry that (it is not a failed command but a
# driver error that ends the flow as "Unknown error"; a `retry:` here ran once), so the pause comes first, to
# make it rare, and run-variants.sh runs a flow again when it ends that way. The pause must not read the
# screen itself (pause.yaml, not sleep.yaml: that one is a hierarchy request too).
- runFlow:
    file: "pause.yaml"
    env:
      MS: "8000"
- runFlow:
    when:
      visible: "Open in .*"
    commands:
      - tapOn: "Open"
- runFlow:
    when:
      visible: ".*runtime not ready.*"
    commands:
      - tapOn: "Reload"
- runFlow:
    when:
      visible: ".*developer menu.*"
    commands:
      - tapOn: "Continue"
```
