Previous step id was still calculated the old way for step following triggers: if first step in the array, means it follows the trigger. It was not working for steps inserted between trigger and first step. Removing that code for good. Before <img width="500" height="655" alt="Capture d’écran 2025-08-18 à 16 34 50" src="https://github.com/user-attachments/assets/31365bfe-8c7d-45b5-8141-ac3d4e31127f" /> After <img width="500" height="655" alt="Capture d’écran 2025-08-18 à 16 34 18" src="https://github.com/user-attachments/assets/b9b42c58-0416-48a6-bc65-2966366a888c" />