Conversation
fix: improve form value resolution in executeNode and add utility function to check object emptiness
…hod call (#5746) * Potential fix for code scanning alert no. 84: Unvalidated dynamic method call Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for code scanning alert no. 84: Unvalidated dynamic method call#5746 * Potential fix for code scanning alert no. 100: Unvalidated dynamic method call Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for code scanning alert no. 84: Unvalidated dynamic method call#5746 --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: christopherholland-workday <christopher.holland+evisort@workday.com>
Fix #5704: interpolate {{ variables }} for HumanInput node in Agentflow v2 When the HumanInput node receives user input, its output only contained `{ conditions: [...] }`. The resolveVariables function extracts `nodeOutput?.content` for bare `{{ nodeId }}` references, which was undefined, causing the template string to be returned unchanged. Add a top-level `content` field (set to the user's feedback text or action type) to the HumanInput node output so that `{{ humanInputAgentflow_0 }}` correctly interpolates to the user's response.
* Add protections for loop-bound injections * Update packages/server/src/services/evaluations/index.ts Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update packages/server/src/services/evaluations/index.ts Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Add protections for loop-bound injections * Add protections for loop-bound injections --------- Co-authored-by: christopherholland-workday <christopher.holland+evisort@workday.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* fix(components): add missing regex handler to Condition node The Condition agentflow node's Regex operation was not functional because compareOperationFunctions was missing the regex handler. Changes: - Added regex handler with unescapeRegexPattern helper function - Handles Flowise's escaping of regex metacharacters - Gracefully returns false for invalid regex patterns - Added 22 unit tests Fixes #5650 * refactor: address code review feedback - Move unescapeRegexPattern to module level for performance - Restrict unescaping to only [, ], * (verified by UI testing) - Use nodeClass from beforeEach in all tests for consistency - Add else condition assertions for non-matching tests - Add test for escaped asterisk * Delete packages/components/nodes/agentflow/Condition/Condition.test.ts * Update Condition.ts --------- Co-authored-by: Henry Heng <henryheng@flowiseai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )