main ← fix-workflow-modal-cross-tab-close
approved 05:19PM - 21 Aug 26 UTC
Previously, the workflows "Modal" step showed its modal in every tab the target …user had open: answering or dismissing it in one tab left stale copies open everywhere else, and acting on a leftover copy surfaced a misleading "not found" error, since a response token can no longer be matched once its execution has resumed.
This change tags every shown modal with a unique id and broadcasts a `close_modal` message on the user's channel whenever the modal is answered or dismissed, closing the remaining copies in all tabs; a response from a leftover copy is now acknowledged as already handled instead of erroring.
Reported at https://meta.discourse.org/t/410129