Skip to content

fix(server): support direct variable names in overrideConfig for Agentflow - #6669

Open
iruzen-dono wants to merge 1 commit into
FlowiseAI:mainfrom
iruzen-dono:fix/overrideconfig-agentflow-variables
Open

fix(server): support direct variable names in overrideConfig for Agentflow#6669
iruzen-dono wants to merge 1 commit into
FlowiseAI:mainfrom
iruzen-dono:fix/overrideconfig-agentflow-variables

Conversation

@iruzen-dono

Copy link
Copy Markdown

Description

When users pass custom variable values directly in overrideConfig (e.g. { clasificador: "new_value" }) instead of nested under overrideConfig.vars, the values are silently ignored by replaceInputsWithConfig because it only applies overrides to enabled node input parameters.

This was a regression from v3.0.11 where this format used to work.

Changes

In replaceInputsWithConfig() in packages/server/src/utils/index.ts:

  • Added pre-processing step that detects keys in overrideConfig matching enabled variable overrides
  • Moves them to overrideConfig.vars where getGlobalVariable can resolve them properly
  • Maintains backward compatibility with the existing overrideConfig.vars format

Related Issue

Closes #6651

…tflow

When users pass custom variable values directly in overrideConfig
(e.g. { clasificador: "new_value" }) instead of nested under
overrideConfig.vars, the values were silently ignored because
replaceInputsWithConfig only applied overrides to enabled node input
parameters.

This fix pre-processes overrideConfig to detect keys that match
enabled variable overrides and moves them to overrideConfig.vars,
where getGlobalVariable can resolve them properly.

Fixes FlowiseAI#6651
Copilot AI review requested due to automatic review settings July 26, 2026 10:52
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

OverrideConfig fails to update custom variable in Agentflow (regression from v3.0.11 to v3.1.3)

2 participants