open-webui/backend/open_webui/models
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
..
access_grants.py refac 2026-02-25 15:15:59 -06:00
auths.py refac 2026-03-01 14:06:26 -06:00
channels.py refac 2026-02-21 15:35:34 -06:00
chat_messages.py chore: format 2026-03-07 20:14:32 -06:00
chats.py fix: add deterministic tiebreaker to all paginated chat queries (#22387) 2026-03-07 20:16:50 -06:00
feedbacks.py enh: analytics model modal 2026-02-04 23:42:46 -06:00
files.py chore: format 2026-02-11 16:24:11 -06:00
folders.py enh: create subfolder 2026-03-07 19:45:43 -06:00
functions.py refac 2026-03-06 20:12:37 -06:00
groups.py refac 2026-02-25 14:52:41 -06:00
knowledge.py refac 2026-03-01 13:20:55 -06:00
memories.py perf: eliminate redundant query after memory update (#21013) 2026-01-29 21:45:09 +04:00
messages.py feat: channel webhooks 2026-01-09 02:30:15 +04:00
models.py refac 2026-02-21 15:35:34 -06:00
notes.py refac 2026-02-19 16:53:21 -06:00
oauth_sessions.py Update oauth_sessions.py (#21794) 2026-02-24 17:05:47 -06:00
prompt_history.py chore: format 2026-02-11 16:24:11 -06:00
prompts.py refac 2026-02-21 15:35:34 -06:00
skills.py refac 2026-02-21 15:35:34 -06:00
tags.py chore: format 2026-02-16 00:43:32 -06:00
tools.py chore: format 2026-02-23 01:40:53 -06:00
users.py chore: format 2026-02-13 15:00:39 -06:00