From 53b6878742ed44278c180a1b4e7c89bd364d346f Mon Sep 17 00:00:00 2001 From: Michael Chihlas Date: Wed, 11 Mar 2026 12:50:13 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20KB=20procedural=20import=20=E2=80=94=20m?= =?UTF-8?q?ap=20step=20content=20to=20description=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Steps built by _build_procedural_tree() were stored under the "content" key but StepDetail.tsx reads "description". Renamed the key so step text and commands display correctly during session execution. Co-Authored-By: Claude Sonnet 4.6 --- backend/app/api/endpoints/kb_accelerator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/api/endpoints/kb_accelerator.py b/backend/app/api/endpoints/kb_accelerator.py index 238175a6..058430b4 100644 --- a/backend/app/api/endpoints/kb_accelerator.py +++ b/backend/app/api/endpoints/kb_accelerator.py @@ -931,7 +931,7 @@ def _build_procedural_tree(nodes: list[KBImportNode]) -> dict: "id": content.get("original_id", str(node.id)), "type": step_type, "title": step_title, - "content": step_content, + "description": step_content, } # Preserve content_type if present @@ -948,7 +948,7 @@ def _build_procedural_tree(nodes: list[KBImportNode]) -> dict: "id": "procedure-end", "type": "procedure_end", "title": "Procedure Complete", - "content": "All steps have been completed.", + "description": "All steps have been completed.", }) return {