mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-10-03 04:33:27 +00:00
The PR reviews page builds a Pierre FileContents cache key for every file in an unconditional useMemo. Binary/oversized/added/removed blobs arrive with null originalContent/modifiedContent (pr_diff.py flags them unrenderable), so fileContentsCacheKey dereferenced null via contents.length and crashed the whole route — escaping the markdown error boundary, which was unrelated. Coerce null/undefined contents to "" in the cache-key helper so it can never throw. Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| diffStats.ts | ||
| diffUtils.test.ts | ||
| diffUtils.ts | ||