Files
open-webui-ai4me/backend/open_webui
Classic298 223c14f48b fix: add deterministic tiebreaker to all paginated chat queries (#22387)
Add Chat.id as a secondary sort key to all paginated chat queries
that use offset/limit pagination. When multiple chats share the same
updated_at timestamp, the database does not guarantee a stable order
across page boundaries, causing chats to appear on multiple pages.

This produces duplicate keys in the Svelte sidebar each-block
(each_key_duplicate error). Adding Chat.id as a tiebreaker ensures
fully deterministic ordering.

Extends the fix from #22383 (which addressed get_chat_ids_by_model_id)
to all remaining paginated chat queries.
2026-03-07 20:16:50 -06:00
..
2026-03-07 20:14:32 -06:00
2026-03-07 20:14:32 -06:00
2025-08-10 00:02:58 +04:00
2026-02-11 16:24:11 -06:00
2026-02-21 14:19:28 -06:00
2026-03-07 18:18:02 -06:00
2026-03-07 20:14:32 -06:00
2025-04-15 09:55:35 +02:00
2026-03-07 20:05:18 -06:00
2026-03-06 20:12:37 -06:00
2026-02-11 16:24:11 -06:00
2026-03-07 19:23:18 -06:00
2026-02-12 15:29:34 -06:00