mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-17 05:20:55 +00:00
* 🧪 test: Keep the Service Worker Out of Scenarios That Hold a Request After Load The sidebar row scenarios and the streaming dot scenario install a route on a page that has already loaded, to hold one request open. The PWA service worker finishes installing and takes control of that page at about the same time, and a route installed in the few milliseconds around that handover is never consulted: the request goes straight to the server and Playwright stops seeing the page's requests at all. In the sidebar scenarios the archive completed while the test waited on a promise only the route could resolve, so the test sat until its 60 second timeout. In the streaming dot scenario the held turn simply finished and the dot was gone. Both specs now block service workers, as the other specs that depend on a route already do, and the archive wait fails with a named expectation instead of running out the clock. * 🧪 test: Wait for the Prompt Filter to Apply Before Opening Row Menus The prompts panel applies a filter half a second after typing stops, and does it by replacing the rows with the filtered request's answer. The scenario opened a row's menu straight after typing, on a row that was about to unmount, so when the swap landed between the menu opening and the test reading its items the menu was gone and the test read an empty list. Typing the filter now waits for the filtered request to finish, so the rows the test opens are the ones the filter produced. * 💭 fix: Settle a Grouped Thought Once the Run Has Moved Past It A thought folded into a tool group decided it was still streaming by comparing its index with the tail of the body it renders in. Every settled activity phase renders in a body of its own and so has a tail too, which left the last thought of a finished phase reading "Thinking..." with its live peek whenever that body was on screen while the run went on. At the end of a run a summary card folds in over the phase with its panel open, so the finished thought flashed its peek for about a tenth of a second under the completed reply. The group now applies the rule a lone thought already follows: only the body that holds the message's cursor has a part still being written. The scenario that guards this sampled the peek ten times a second and stopped at the final text, so it saw the flash only when a sample happened to land in it. The page now counts every appearance itself, through the end of the run. * 🧪 test: Count Thought Peeks Inside the Conversation Only The count the page keeps looked for the peek anywhere in the document, where the samples it replaced looked inside the message view. It now matches them. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| sw | ||
| test | ||
| babel.config.cjs | ||
| check_updates.sh | ||
| index.html | ||
| jest.config.cjs | ||
| jest.resolver.cjs | ||
| nginx.conf | ||
| package.json | ||
| postcss.config.cjs | ||
| tailwind.config.cjs | ||
| tsconfig.json | ||
| vite.config.ts | ||