GPT-5 finding
Route handler params typed as Promise and unnecessarily awaited
- dashboard/app/api/skills/[name]/run/route.ts:7-13
Next.js Route Handlers receive a plain params object, not a Promise. Typing it as Promise and awaiting it is misleading and can obscure real type errors, increasing maintenance risk.
Recommendation
Use the correct signature: export async function POST(request: Request, { params }: { params: { name: string } }) and remove the unnecessary await.