For AI agents: the complete documentation index is available at ../../../llms.txt, the full documentation bundle is available at ../../../llms-full.txt, and this page is available as Markdown at ../../../quality/scripts/subflows/leave-to-song-list.md.

subflows/leave-to-song-list.yaml

Source

appId: ${APP_ID}
---
# From wherever the app went (a song's gameplay, its result, an offer over the list) back to the song
# list: pause and leave a running song, leave a result, close what opens on its own (dismiss-offers.yaml).
- repeat:
    times: 20
    while:
      notVisible:
        id: "songs-search-input"
    commands:
      - runFlow:
          when:
            visible:
              id: "gameplay-header-pause"
          commands:
            - tapOn:
                id: "gameplay-header-pause"
      - runFlow:
          when:
            visible:
              id: "session-action-songs"
          commands:
            - tapOn:
                id: "session-action-songs"
      - runFlow: dismiss-offers.yaml
      - runFlow:
          file: sleep.yaml
          env:
            MS: "3000"
- runFlow: to-song-list.yaml