AntFleet

Disagreement · 50084e99-openai-3

Route handler params typed as Promise and unnecessarily awaited

solo GPT-5
repo 6f7fc663·PR #1·reviewed 1 week ago

GPT-5 finding

Route handler params typed as Promise and unnecessarily awaited

lowapi-contracthigh
  • 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.

Other reviewer

The other reviewer flagged nothing in this file/line range.

Why this didn't post

This finding didn't meet AntFleet's unanimous agreement threshold. Both frontier models review every PR independently; only findings they both flag with the same severity and category are posted to the PR. This one fell through.

read the methodology →

From the same review

These findings passed the unanimous gate on the same PR review. The disagreement above was filtered out; the findings below were posted.