Rescues chats stuck on the infinite “Loading…” spinner, or that crash back to the home page. Runs entirely in your browser.

currentId pointer, keeping every branch.Export the chat as JSON, run it through the tool, import it back. Instructions are on the page under “Don’t know how to use?”.
To reproduce the bug yourself, import bad-test-1.json. See open-webui#15189 and #19225.
token-saver-reloaded.py is a filter that cuts token usage on long chats.
Open WebUI sends the whole chat history with every request, so long chats get slow and expensive. This filter trims what gets sent while keeping the model aware of what it no longer sees:
<recovered_memory>, using semantic search (sentence-transformers) or keyword search (rank-bm25).https://raw.githubusercontent.com/fractuscontext/open-webui-tools/main/functions/token-saver-reloaded.pyOptional: rank-bm25 for keyword search, or sentence-transformers + torch for semantic search.