AntFleet

Disagreement · bdb225d0-openai-2

Comment and typing for searchParams in Receipts page are misleading; searchParams is not a Promise in Next.js App Router

solo GPT-5
repo e24ef98c·PR #10·reviewed 1 week ago

GPT-5 finding

Comment and typing for searchParams in Receipts page are misleading; searchParams is not a Promise in Next.js App Router

lowdocs-gaphigh
  • apps/web/app/receipts/page.tsx:32-41
In Next.js App Router, searchParams is provided as a plain object, not a Promise. Awaiting a non-Promise works in JS (await passes through), but the comment documents an incorrect contract and the Promise typing can mislead future changes or refactors.

Recommendation

Update the prop type to searchParams: SearchParams and remove the await. Fix the comment to describe the correct contract (plain object with string | string[] | undefined values).

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 →