mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-20 23:13:35 +00:00
* 🪜 perf: Mount a Long Thread in Steps While a Reply Is in Flight A long thread mounts in steps, but a run under way switched that off: the first sixteen rows appeared, then every remaining row mounted in one synchronous commit. Returning to a conversation whose agent was still working froze the page for as long as the whole thread takes to render: 1.5 s for 246 rows, 7 s for 984. A thread anchored at its end, the default, now keeps widening while a reply is in flight: four rows a frame, each step committed at once, because a reply's frames would discard a transition's unfinished render. A thread anchored at its start does not hold the reply's row and still mounts the rest at once. A step also no longer renders a component per message. Rows wait on the window through a subscription instead of reading it from context, so only the rows a step adds render, whatever the thread's length. * 🪜 test: Hold the Run in Flight for the Whole Load in the Stepped-Mount Scenario The scenario streamed a reply that could finish before a slow machine had reloaded, and its second half moved the reader with a synthetic scroll that raced the landing every open performs. It now starts a run that stays in flight, checks the steps and the resting place, and stops the run. The reader-place half is dropped: it failed on timing that has nothing to do with the steps. |
||
|---|---|---|
| .. | ||
| deployed | ||
| mock | ||
| real | ||
| a11y.spec.ts | ||
| keys.spec.ts | ||
| landing.spec.ts | ||
| messages.spec.ts | ||
| nav.spec.ts | ||
| popup.spec.ts | ||