From 2a2894496d8b9ab57462bc604ca4797485cda169 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Sun, 8 Mar 2026 17:41:22 -0400 Subject: [PATCH] fix: use session_id instead of id in AI flow builder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CreateFlowDropdown accessed `session.id` which is undefined — the API returns `session_id`. The undefined value caused "undefined" to be interpolated into URL paths, triggering 422 validation errors from FastAPI. Co-Authored-By: Claude Opus 4.6 --- frontend/src/components/common/CreateFlowDropdown.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/common/CreateFlowDropdown.tsx b/frontend/src/components/common/CreateFlowDropdown.tsx index 85816601..37586ddb 100644 --- a/frontend/src/components/common/CreateFlowDropdown.tsx +++ b/frontend/src/components/common/CreateFlowDropdown.tsx @@ -30,7 +30,7 @@ export function CreateFlowDropdown({ const session = await editorAIApi.startSession( aiPromptFlowType === 'maintenance' ? 'procedural' : aiPromptFlowType ) - const sessionId = session.id + const sessionId = session.session_id // Send the user's prompt await editorAIApi.sendMessage({