diff --git a/vibn-frontend/app/api/projects/[projectId]/agent/sessions/route.ts b/vibn-frontend/app/api/projects/[projectId]/agent/sessions/route.ts index c60c742..be9d3e2 100644 --- a/vibn-frontend/app/api/projects/[projectId]/agent/sessions/route.ts +++ b/vibn-frontend/app/api/projects/[projectId]/agent/sessions/route.ts @@ -83,7 +83,7 @@ export async function POST( // Create the session row const rows = await query<{ id: string }>( `INSERT INTO agent_sessions (project_id, app_name, app_path, task, status, started_at) - VALUES ($1::text, $2, $3, $4, 'running', now()) + VALUES ($1::uuid, $2, $3, $4, 'running', now()) RETURNING id`, [projectId, appName, appPath, task.trim()] );