Files
open-webui/backend/open_webui/utils
Classic298 56eca192ab feat: context compaction now runs on chats with few messages that are over the threshold (#32794)
Context compaction summarizes older messages and keeps the most recent ones verbatim, splitting the chat at a user message. It skipped the chat whenever the first follow-up message sat too close to the end to keep the share set in the Retained Messages admin setting. So a fresh chat with one question and one reply carrying a lot of tool output never compacted: the follow-up failed with a context length error, and regenerating or editing that follow-up failed the same way. Now compaction splits at the first follow-up message in that case, keeping fewer messages than Retained Messages asks for, so the chat keeps working. Chats where a split already met that share compact as before, and compaction between tool calls is unchanged.

Fixes #32781
2026-10-21 08:35:13 +09:00
..
2026-10-15 17:56:56 +04:00
2026-10-01 03:31:20 +04:00
2026-10-14 17:10:08 +04:00
2026-08-24 18:29:36 -04:00
2026-10-05 12:17:25 +04:00
2026-10-14 23:58:58 +04:00
2026-10-12 17:29:04 +04:00
2026-07-23 02:54:56 -04:00
2026-07-26 21:12:14 -04:00
2026-07-31 17:41:14 -04:00
2026-10-01 03:31:20 +04:00
2026-10-16 18:58:58 +04:00
2026-10-14 23:21:22 +04:00
2026-07-26 23:09:22 -04:00
2026-10-10 23:18:09 +04:00
2026-10-09 18:37:55 +04:00
2026-10-16 04:20:53 +04:00
2026-03-17 17:58:01 -05:00
2026-08-24 18:29:36 -04:00
2026-10-16 14:31:39 +04:00
2026-10-11 00:55:58 +04:00
2026-10-16 14:31:39 +04:00
2026-10-10 23:18:09 +04:00
2026-10-14 23:21:22 +04:00
2026-09-15 22:47:03 -04:00
2026-10-11 15:55:57 +04:00