From 49845541f1dc01a87c8939ba5b0b71dd6fbd28f7 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Fri, 6 Nov 2026 15:10:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20[Agent]=20Changes=20to=20user-input=20pa?= =?UTF-8?q?rameter=20values=20=E2=80=8B=E2=80=8Bare=20not=20taking=20effec?= =?UTF-8?q?t;=20workflow=20nodes=20continue=20to=20use=20the=20default=20v?= =?UTF-8?q?alues.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflow/nodes/start_node/start_node.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/application/workflow/nodes/start_node/start_node.py b/apps/application/workflow/nodes/start_node/start_node.py index e9a863aef76..46bd4ad26bd 100644 --- a/apps/application/workflow/nodes/start_node/start_node.py +++ b/apps/application/workflow/nodes/start_node/start_node.py @@ -47,7 +47,16 @@ def execute(self): api_input_field_list = base_node.properties.get("api_input_field_list", []) if base_node else [] default_global = get_default_global_variable(user_input_field_list) default_api_global = get_default_global_variable(api_input_field_list) - + form_data = workflow_params.get('form_data') or {} + for key in default_global.keys(): + value = form_data.get(key) + if value: + default_global[key] = value + + for key in default_api_global.keys(): + value = form_data.get(key) + if value: + default_api_global[key] = value history_chat_record = workflow_params.get("history_chat_record", []) history_context = [{"question": r.problem_text, "answer": r.answer_text} for r in history_chat_record]