Fix StateGraph losing loop iteration results when HIL interrupt occurs
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3571339. --> Reported by: [joevagyok](https://www.drupal.org/user/2876343) >>> <h3>Problem</h3> <p>When a Human-in-the-Loop interrupt occurred during a ForEach loop in the StateGraph orchestrator, the results from previous loop iterations were being lost.</p> <h3>Root Cause</h3> <p>The checkpoint mechanism was not properly preserving accumulated loop results when saving state during an interrupt.</p> <h3>Solution</h3> <p>Updated the StateGraph orchestrator to preserve all loop iteration results when a HIL interrupt occurs, ensuring they are available when execution resumes.</p> <h3>Impact</h3> <ul> <li>Loop workflows with HIL interrupts now work correctly</li> <li>Data integrity maintained across interrupt boundaries</li> <li>Complex workflows with both loops and human interaction are now supported</li> </ul>
issue