From bcc05ad3ab99c910fb6c1ef638a41b1c191f552d Mon Sep 17 00:00:00 2001 From: harini-venkataraman Date: Tue, 1 Sep 2026 10:50:32 +0530 Subject: [PATCH 1/2] UN-3569 [FIX] Pass enable_header_mapping through agentic_params The cloud backend stores enable_header_mapping in tool_metadata["agentic_table_settings"], but structure_tool_task.py never forwarded it to the executor. The executor already reads params.get("enable_header_mapping", False), so this one-line addition closes the gap for API/ETL/workflow runs. Co-Authored-By: Claude Opus 4.6 --- workers/file_processing/structure_tool_task.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/workers/file_processing/structure_tool_task.py b/workers/file_processing/structure_tool_task.py index bb367498d4..e32530d49a 100644 --- a/workers/file_processing/structure_tool_task.py +++ b/workers/file_processing/structure_tool_task.py @@ -474,6 +474,9 @@ def _execute_structure_tool_impl(params: dict) -> dict: "execution_id": execution_id, "PLATFORM_SERVICE_API_KEY": platform_service_api_key, "group_key": at_settings.get("group_key", ""), + "enable_header_mapping": at_settings.get( + "enable_header_mapping", False + ), } at_ctx = ExecutionContext( executor_name="agentic_table", From 5efc702ae915d02812991f81c2999fa32c856396 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2026 07:39:07 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- workers/file_processing/structure_tool_task.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/workers/file_processing/structure_tool_task.py b/workers/file_processing/structure_tool_task.py index 826050e3a3..23a1ba8eb2 100644 --- a/workers/file_processing/structure_tool_task.py +++ b/workers/file_processing/structure_tool_task.py @@ -479,9 +479,7 @@ def _execute_structure_tool_impl(params: dict) -> dict: "execution_id": execution_id, "PLATFORM_SERVICE_API_KEY": platform_service_api_key, "group_key": at_settings.get("group_key", ""), - "enable_header_mapping": at_settings.get( - "enable_header_mapping", False - ), + "enable_header_mapping": at_settings.get("enable_header_mapping", False), # Set on the output at export by prompt_studio_registry_helper.py # when a lookup is assigned; None otherwise. "lookup_config": at_output.get("lookup_config"),