Files
open-webui/backend/open_webui
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-14 18:49:51 +04:00
2026-10-21 03:44:42 +09:00
2026-10-16 14:48:08 +04:00
2026-09-06 17:27:30 -04:00
2026-10-05 12:03:19 +04:00
2026-10-05 12:17:25 +04:00
2026-10-16 18:58:58 +04:00
2026-10-01 03:31:20 +04:00
2026-10-08 14:30:07 +04:00
2026-10-16 02:46:20 +04:00
2026-10-16 04:20:53 +04:00