Files
open-webui/backend/open_webui/utils/agents
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-14 00:14:28 +09:00
2026-11-16 14:21:04 +09:00
2026-11-17 00:40:16 +09:00
2026-11-17 00:31:18 +09:00
2026-11-22 17:13:34 +04:00
2026-11-16 21:10:30 +09:00
2026-11-16 14:21:04 +09:00
2026-11-24 20:49:51 +04:00
2026-11-22 17:13:34 +04:00