Flow action config page receives a stale step_reference (one step behind) in both the iframe URL and App Bridge `intents.register`

When a merchant opens the configuration of a custom Flow action (config_page_url), our page is handed the step_reference of a previously opened step - not the one the merchant
clicked. It’s one step behind.

We read the current step the following way:

shopify.intents.register((registeredIntent) => {
  const step = registeredIntent.type;
});

The mismatch - opening the config for one step, all three sources disagree:

  • Admin URL (correct step): …&step_reference=0b30e23…
  • App Bridge intent in the iframe (shopify.intents.register((i) => console.log(i.type, i.action))): intent.type = gid://flow/stepReference/9e708d4…
    stale

  • iframe src: …/configuration?…&step_reference=9e708d4… ← stale

Impact: merchants view/edit the wrong step’s config (and overwrite it on Save). Since both the URL param and intents.register are stale, the extension has no way to recover
the correct step - the only correct value is in the cross-origin admin URL, which the iframe can’t read.

Could you please look into this? Please let me know if you need any additional details.

Thanks for reporting. We are investigating