Skip to content

fix: loop iterations to forward output from previous iteration#6868

Open
kausmeows wants to merge 5 commits intomainfrom
fix/loop-iteration-outputs
Open

fix: loop iterations to forward output from previous iteration#6868
kausmeows wants to merge 5 commits intomainfrom
fix/loop-iteration-outputs

Conversation

@kausmeows
Copy link
Contributor

@kausmeows kausmeows commented Mar 4, 2026

Summary

  • Fixed a bug where Loop iterations always received the original input instead of the previous iteration's output
  • Each iteration's step_input now carries forward from the previous iteration, enabling iterative accumulation patterns
  • Fix applied to all 4 execution methods: execute, execute_stream, aexecute, aexecute_stream

fixes: #6862

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Improvement
  • Model update
  • Other:

Checklist

  • Code complies with style guidelines
  • Ran format/validation scripts (./scripts/format.sh and ./scripts/validate.sh)
  • Self-review completed
  • Documentation updated (comments, docstrings)
  • Examples and guides: Relevant cookbook examples have been included or updated (if applicable)
  • Tested in clean environment
  • Tests added/updated (if applicable)

Additional Notes

Add any important context (deployment instructions, screenshots, security considerations, etc.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Loop not carry forwarding previous loop step output which is unexpected

2 participants