mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-25 06:47:37 -05:00
Opening a chat with no machine selected read through the whole conversation on every open, looking for a machine to restore. That is the normal case for a chat, so large chats opened about 45% slower. A chat that already saved its selection, with no machine or with a machine saved under its former terminal name, now opens without that extra pass. Agent chats with nothing saved still get their machine and folder back. Fastest of seven opens of a 130 MB chat on SQLite: <table> <tr><th></th><th>Context Compaction off</th><th>Context Compaction on</th></tr> <tr><td>dev before Terminals were renamed to Machines</td><td>0.316 s</td><td>0.429 s</td></tr> <tr><td>dev</td><td>0.469 s</td><td>0.608 s</td></tr> <tr><td>this fix</td><td>0.325 s</td><td>0.437 s</td></tr> </table> Fixes #34962