Files
open-webui/backend/open_webui/utils
Classic298 22f8516dd9 fix: a chat compacted on demand is compacted again although little is left (#35679)
Compacting a chat by hand stores the summary on the last reply, and that reply still carried the token count of the whole history the summary replaced. The server kept counting the chat at its size from before the compaction, so when later replies reported no token count, a short chat was compacted again a couple of messages later and its reported context usage stayed at the old size. The server now counts from what is actually left after the compaction. The context usage shown in the chat (/status) is worked out by the page itself and gets the matching change in a separate fix.

Related to #35678
2026-12-05 08:03:38 +04:00
..
2026-12-05 06:57:35 +04:00
2026-12-04 07:30:14 +04:00
2026-11-22 20:43:18 +04:00
2026-11-19 19:13:33 +04:00
2026-11-13 17:36:00 +09:00
2026-12-04 07:30:14 +04:00
2026-11-22 17:13:34 +04:00
2026-11-09 08:05:51 +09:00
2026-11-25 02:15:42 +04:00
2026-12-01 00:41:27 +04:00
2026-12-03 04:26:01 +04:00
2026-11-25 13:06:56 +04:00
2026-11-16 21:10:30 +09:00
2026-11-30 23:15:45 +04:00
2026-10-12 17:29:04 +04:00
2026-07-23 02:54:56 -04:00
2026-11-24 22:11:32 +04:00
2026-12-02 04:30:51 +04:00
2026-07-31 17:41:14 -04:00
2026-12-05 06:57:35 +04:00
2026-11-13 17:36:00 +09:00
2026-11-02 08:48:51 +09:00
2026-12-05 06:57:35 +04:00
2026-11-24 19:10:42 +04:00
2026-11-27 15:17:00 +04:00
2026-12-04 07:30:14 +04:00
2026-07-26 23:09:22 -04:00
2026-12-03 05:32:07 +04:00
2026-11-22 02:10:33 +04:00
2026-12-03 04:26:01 +04:00
2026-11-02 08:48:51 +09:00
2026-11-22 20:33:28 +04:00
2026-12-02 04:30:51 +04:00
2026-03-17 17:58:01 -05:00
2026-08-24 18:29:36 -04:00
2026-11-25 13:06:56 +04:00
2026-11-25 04:31:16 +04:00
2026-10-16 14:31:39 +04:00
2026-11-22 17:13:34 +04:00
2026-12-04 07:30:14 +04:00
2026-12-04 06:30:25 +04:00
2026-12-04 07:30:14 +04:00
2026-11-22 17:13:34 +04:00
2026-11-22 17:13:34 +04:00
2026-12-03 05:18:45 +04:00
2026-12-05 06:57:35 +04:00
2026-11-02 08:48:51 +09:00
2026-10-11 15:55:57 +04:00
2026-11-02 08:48:51 +09:00