From eb709d111de814e93dff4de217ebf59d723e8c2e Mon Sep 17 00:00:00 2001 From: mawkone Date: Fri, 29 May 2026 19:23:06 -0700 Subject: [PATCH] fix(auth): allow empty string appPath inside session-creation route --- .../app/api/projects/[projectId]/agent/sessions/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b48f963..c60c742 100644 --- a/vibn-frontend/app/api/projects/[projectId]/agent/sessions/route.ts +++ b/vibn-frontend/app/api/projects/[projectId]/agent/sessions/route.ts @@ -55,7 +55,7 @@ export async function POST( task: string; }; - if (!appName || !appPath || !task?.trim()) { + if (!appName || appPath === undefined || !task?.trim()) { return NextResponse.json({ error: "appName, appPath and task are required" }, { status: 400 }); }