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
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal fix: requests hang or fail with 503 after pages are closed while loading (#32617) 2026-10-21 03:23:05 +09:00
migrations refac 2026-10-14 18:49:51 +04:00
models fix: Archive All Chats takes chats out of their folders, so deleting a folder no longer deletes them (#32647) 2026-10-21 03:18:03 +09:00
retrieval refac 2026-10-21 03:44:42 +09:00
routers fix: dropped realtime call sometimes shows "Voice connection failed" (#32730) 2026-10-21 04:45:54 +09:00
socket refac 2026-10-16 14:48:08 +04:00
static refac 2026-09-06 17:27:30 -04:00
storage refac 2026-10-05 12:03:19 +04:00
tools fix: misleading ask_user error when questions are not sent as a list (#32727) 2026-10-21 03:33:10 +09:00
utils feat: context compaction now runs on chats with few messages that are over the threshold (#32794) 2026-10-21 08:35:13 +09:00
__init__.py refac 2026-10-05 12:17:25 +04:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py refac 2026-10-16 18:58:58 +04:00
constants.py fix: SSO login failures show the email/password error (#31629) 2026-09-30 19:07:49 +04:00
env.py refac 2026-10-01 03:31:20 +04:00
events.py refac 2026-10-08 14:30:07 +04:00
functions.py fix: pipes and tools get None instead of a file list when nothing is attached (#32380) 2026-10-14 12:18:55 +04:00
main.py refac 2026-10-16 02:46:20 +04:00
tasks.py refac 2026-10-16 04:20:53 +04:00