You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: stop lying to users when analysis parsing fails
When the analyzer LLM returns truncated JSON, parseAnalysisResponse
was catching the error, printing to stderr where nobody reads it, and
returning a zeroed-out result. Every caller then printed "Analysis
complete" with a green checkmark. And then every load site that read
the result back from disk would render all-zero scores as if the model
genuinely scored zero on everything.
Added a parseFailed flag to AnalysisResult so callers can distinguish
"the model scored you low" from "we couldn't even read the response."
All three analysis call sites now show a warning with retry instructions.
Added a shared loadAnalysisResult helper that returns null for
parseFailed results — all five disk load sites (results list, compare,
challenge view, report, interactive browser) now use it instead of
inline JSON.parse. Failed analyses show as "-" in tables and are
excluded from reports, same as if no analysis was run.
Closes#56
0 commit comments