Files
open-webui/backend/open_webui
Classic298 90116cd36f fix: large chats with no machine selected open slowly (#34963)
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
2026-11-24 23:11:30 +04:00
..
2026-11-17 23:28:54 +09:00
2026-11-24 22:11:32 +04:00
2026-11-24 20:04:48 +04:00
2026-11-23 16:21:00 +04:00
2026-11-02 09:59:00 +09:00
2026-10-05 12:03:19 +04:00
2026-11-24 16:39:36 +04:00
2026-11-24 19:10:42 +04:00
2026-11-23 16:21:00 +04:00
2026-11-03 16:25:23 +09:00
2026-11-24 22:11:32 +04:00
2026-11-02 08:48:51 +09:00