Compare start, end and last-anchor as the place a reopened thread opens at.
npx shadcn@latest add @reui/c-message-scroller-4
Sign in or get a license at ReUI to see its source and install it.