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 }); }