Updated with minor additions. These were hanging in my version. The reason I updated now was that I briefly struck my head against the brick wall that is “fixing the edit step behavior when entering notes in pattern”. As a result I’m now very convinced that currently it’s just too hacky to ever get this working 100% right… Next API version, perhaps. Or a native solution.