fix: use session_id instead of id in AI flow builder

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 <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-03-08 17:41:22 -04:00
parent df46046c86
commit 2a2894496d

View File

@@ -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({