Rendering a million-line diff is the easy part. 👀
Comments are what break it. Their height depends on markdown wrapping, expanded details, open reply boxes, and images still loading (none of which you know until you render).
Here's how we rebuilt the PR view in the GitHub Copilot app 🧵