mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
[MASTRA-2830] fix if-else execution (#3428)
## Description - Enter into limbo state on if-else branch when condition fails. This makes sure inner steps/conditions are not getting executed on a branch with a failed parent condition. - Enable correct execution order when stacking or nesting if-else conditions ## Related Issue(s) Closes #3348 ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [x] Code refactoring - [ ] Performance improvement - [ ] Test update ## Checklist - [x] I have performed a self-review of my own code - [ ] I have made corresponding changes to the documentation (if applicable) - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] I have generated a changeset for this PR
This commit is contained in:
parent
5b1050d0a6
commit
8df4a77d66
6 changed files with 229 additions and 42 deletions
Loading…
Add table
Add a link
Reference in a new issue