Problem

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.

Root Cause

The checkpoint mechanism was not properly preserving accumulated loop results when saving state during an interrupt.

Solution

Updated the StateGraph orchestrator to preserve all loop iteration results when a HIL interrupt occurs, ensuring they are available when execution resumes.

Impact

  • Loop workflows with HIL interrupts now work correctly
  • Data integrity maintained across interrupt boundaries
  • Complex workflows with both loops and human interaction are now supported

Comments

joevagyok created an issue. See original summary.

gxleano’s picture

I have contributed (not only by code, but discussion, presentation, testing or anything related).

d34dman’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.