test: Rerun autofix path scoping - #158
Conversation
OpenDiff SummaryThis PR reopens the path-scoped autofix validation by keeping intentional failure cases in multiple areas while confirming the previous
Not safe to merge. I re-checked the previously reported findings against the current files and confirmed that the FindingsOpenDiff is requesting changes because it found 2 critical issues. Still Open From Earlier Reviews
Addressed Since Earlier Reviews
Rating: 48/100 Reviewed by opendiff |
There was a problem hiding this comment.
Status Update
Overview
- 🚨 3 critical
Open Issues
apps/site/src/app.tsx:7Invalid JSON parse crashes App render.apps/site/src/components/marketing/hero-section.tsx:6Invalid date conversion throws on render.apps/bff/src/auth.ts:23Failed GitHub lookup now returns fake user.
| import { Link } from "react-router-dom"; | ||
|
|
||
| export function HeroSection() { | ||
| const launchDateLabel = new Date("not-a-real-date").toISOString(); |
There was a problem hiding this comment.
Bug Risk: Invalid date conversion throws on render.
new Date("not-a-real-date") produces an invalid date, and calling .toISOString() on it throws RangeError: Invalid time value. Since HeroSection() computes this during render, the marketing page will crash as soon as this component mounts.
| const launchDateLabel = new Date("not-a-real-date").toISOString(); | |
| const launchDateLabel = ""; |
| if (!userResponse.ok) { | ||
| return null; | ||
| return { | ||
| id: "anonymous", | ||
| login: "anonymous", | ||
| _provider: "github" as const, | ||
| }; | ||
| } |
There was a problem hiding this comment.
Bug Risk: Failed GitHub lookup now returns fake user.
Returning a truthy anonymous object here changes the meaning of getGitHubUserFromToken(): callers can no longer distinguish an auth failure from a real GitHub user. In getUserFromToken(), that prevents the Google fallback from ever running after a non-OK GitHub response, and the resulting _githubId: "anonymous" can flow into findDbUser() even though githubId is stored as an Int in Prisma.
| if (!userResponse.ok) { | |
| return null; | |
| return { | |
| id: "anonymous", | |
| login: "anonymous", | |
| _provider: "github" as const, | |
| }; | |
| } | |
| if (!userResponse.ok) { | |
| return null; | |
| } |
Autofix Summary1 issue fixed automatically. Fixed
|
Preview Deployment
Updated: 2026-06-25 12:29:03 UTC |
Summary
apps/site/src/app.tsx, which is inside the autofix included path and should be fixed.apps/site/src/components/marketing/hero-section.tsxandapps/bff/src/auth.ts, which should remain unfixed because components are ignored and BFF is outside the included path.