Re-evaluate SUCCESS_IF and FAILURE_IF during RUNNING state#1101
Re-evaluate SUCCESS_IF and FAILURE_IF during RUNNING state#1101facontidavide wants to merge 1 commit intomasterfrom
Conversation
Previously, _successIf and _failureIf preconditions were only checked when the node was IDLE or SKIPPED. This meant that in ReactiveSequence, if a condition changed while an action was RUNNING, the change would not take effect until the action completed. Now these preconditions are also checked during RUNNING state, matching the existing behavior of _while. When a condition triggers, the node is halted and returns the appropriate status. Includes tests for both _successIf and _failureIf with async actions in ReactiveSequence that verify condition changes during RUNNING. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
📝 WalkthroughWalkthroughThe changes enable reactive re-evaluation of preconditions ( Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1101 +/- ##
==============================
==============================
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|



Summary
_successIfand_failureIfpreconditions were not re-evaluated when a node was in RUNNING state_whileChanges
TreeNode::checkPreConditions()to also evaluateSUCCESS_IFandFAILURE_IFwhen status isRUNNINGTest plan
Issue917_SuccessIfWhenRunning- verifies_successIfhalts running async actionIssue917_FailureIfWhenRunning- verifies_failureIfhalts running async action🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Tests