Skip to content
You're now subscribed

Check your email to confirm your subscription—don’t forget to check your spam folder too!

Flows 5 min · Intermediate · Needs RocketSim 17

Keep flows working when your UI changes

When your UI changes, a RocketSim flow stops at the step that no longer matches and tells your agent why. The agent finishes the step, runs flow fix, and the next run passes. You can also verify flows before a task starts, to catch drift early.

Coming soon in RocketSim 17. The commands in this tutorial are not available in the current release.

  1. Verify before you start

    Ask your agent to replay one flow, or all of them, before a task. A flow that drifted shows up now instead of halfway through the work.

    Prompt
    Verify the RocketSim flows for this app before you start, and tell me which ones fail.

    What your agent runs

    Verifying flows
    # One flow rocketsim flow verify open-settings# Every flow for this app rocketsim flow verify
  2. Know what the agent sees

    A failed run stops at the first bad step and returns one compact reply, with the current screen in the same payload. It names the step, the reason, and the closest elements, so the agent continues from the screen it is on instead of restarting the app.

    You should see The flow is marked (stale) in the flow list until it is repaired.

  3. Tell drift from an interruption

    Drift means the UI changed. An environmental blocker means something got in the way, such as an alert, the wrong app in front, or a dismissed sheet. When a step lands on a different screen than expected, the failure names the expected_screen, so the agent can tell the two apart.

  4. Let the agent repair a drifted flow

    Tell the agent what changed. It navigates the corrected path, then merges its steps into the file. RocketSim can also heal an unambiguous single-element rename by itself, and it saves the fix only if the rest of the run still passes.

    Prompt
    The Settings tab is now called Preferences. Finish the open-settings flow by hand, then fix the flow.

    What your agent runs

    Repairing a stale flow
     rocketsim flow fix open-settings
  5. Resume after a blocker

    For an interruption, clear the blocker and continue from the failing step. Step numbers stay stable when prerequisites are skipped.

    Prompt
    Dismiss the alert, then resume the open-settings flow from step 3.

    What your agent runs

    Resuming a flow from a step
     rocketsim flow open-settings --from 3# Retry a flow marked stale anyway rocketsim flow open-settings --force

    You should see The flow passes from the failing step to its final check.

Up next · Flows

Share a flow and collect feedback

Publish a flow, approve reviewer comments, and ship the fixes as version 2.

Learn it in minutes.
Use it on every task.

No signup. Works with Xcode 16+ and Xcode 27's Device Hub.