Skip to content

fix/agentflow: Update default values and auto-add Start node for empty state#6210

Merged
jocelynlin-wd merged 1 commit intomainfrom
fix/agentflow-default-value-start-node
Apr 13, 2026
Merged

fix/agentflow: Update default values and auto-add Start node for empty state#6210
jocelynlin-wd merged 1 commit intomainfrom
fix/agentflow-default-value-start-node

Conversation

@jocelynlin-wd
Copy link
Copy Markdown
Contributor

@jocelynlin-wd jocelynlin-wd commented Apr 13, 2026

  • Implemented auto-add functionality for Start node in Agentflow when creating a new canvas.
  • Updated default values for number and options types to return empty strings instead of zero or first option name.
  • Adjusted MessagesInput and ArrayInput tests to reflect changes in default values.

FLOWISE-497 FLOWISE-509 FLOWISE-494

agentflow-sdk-default-values-fix.mov
agentflow-sdk-auto-add-start-node.mov

…y state

- Implemented auto-add functionality for Start node in Agentflow when creating a new canvas.
- Updated default values for number and options types to return empty strings instead of zero or first option name.
- Adjusted MessagesInput and ArrayInput tests to reflect changes in default values.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements automatic "Start" node initialization for empty canvases and improves the robustness of flow data handling with explicit array checks. It also updates default values for various input types, notably changing number and option defaults to empty strings. Feedback suggests removing the unused options property from the type signature in inputDefaults.ts to match the updated implementation.

@jocelynlin-wd jocelynlin-wd merged commit 7de9e3e into main Apr 13, 2026
7 checks passed
@jocelynlin-wd jocelynlin-wd deleted the fix/agentflow-default-value-start-node branch April 13, 2026 23:21
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.

2 participants