AntFleet

Disagreement · 2385fc2f-openai-1

Next.js App Router searchParams typed as Promise and awaited; Next provides a plain object

solo GPT-5
repo e24ef98c·PR #4·reviewed 2 weeks ago

GPT-5 finding

Next.js App Router searchParams typed as Promise and awaited; Next provides a plain object

lowapi-contracthigh
  • apps/web/app/receipts/page.tsx:29-31
  • apps/web/app/receipts/page.tsx:33-38
In the App Router, Next.js supplies searchParams as a plain object, not a Promise. Awaiting a non-promise works in JS (it yields the value), but the typing and comment misstate the platform contract and can confuse maintainers or cause friction if stricter typings are adopted.

Recommendation

Change the prop type to searchParams: SearchParams and remove the unnecessary await. Update the comment to reflect that searchParams is a plain object.

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 →