From 775c42e2fafcecfe7e494ba129c8b84b3478009a 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/app/api/projects/[projectId]/agent/sessions/route.ts b/app/api/projects/[projectId]/agent/sessions/route.ts index b48f9630..c60c7422 100644 --- a/app/api/projects/[projectId]/agent/sessions/route.ts +++ b/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 }); }