mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
issue: Delete a chat will make chat list disappear #6690
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @avesed on GitHub (Oct 16, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.34
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04, with Docker 28.1.1
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Users can delete chat without the list disappearing.
Actual Behavior
Delete a chat will make chat list disappear
Steps to Reproduce
Logs & Screenshots
https://github.com/user-attachments/assets/a7fb2ef7-8e7b-470c-b0ad-78d6943ba40e
"GET /api/v1/chats/all/tags HTTP/1.1" 200
"GET /api/v1/folders/ HTTP/1.1" 200
"GET /api/v1/chats/pinned HTTP/1.1" 200
"GET /api/v1/chats/?page=2 HTTP/1.1" 200
"GET /api/v1/chats/?page=2 HTTP/1.1" 200
Additional Information
Looks like it went to page 2, but there is only 1 page
@silentoplayz commented on GitHub (Oct 17, 2025):
Duplicate of https://github.com/open-webui/open-webui/issues/18327
@lenz1111 commented on GitHub (Oct 23, 2025):
I was able to replicate an issue on my local instance.
How does it happen:
https://github.com/open-webui/open-webui/blob/46ae3f4f5d7d4d706041bdae4ad2d802e568712b/src/lib/components/layout/Sidebar.svelte#L208-L211$currentChatPage is increased inside loadMoreChats function - which is called:
if $scrollPaginationEnabled && !allChatsLoaded
https://github.com/open-webui/open-webui/blob/46ae3f4f5d7d4d706041bdae4ad2d802e568712b/src/lib/components/layout/Sidebar.svelte#L1174-L1178If you delete chat - initChatList is called
https://github.com/open-webui/open-webui/blob/46ae3f4f5d7d4d706041bdae4ad2d802e568712b/src/lib/components/layout/Sidebar.svelte#L179-L206there is a possibility that $currentChatPage > 1 when getChatList is executed (if you have slower internet connection, in my case I have reverse proxy to external server)
My quick fix:
https://github.com/open-webui/open-webui/blob/46ae3f4f5d7d4d706041bdae4ad2d802e568712b/src/lib/components/layout/Sidebar.svelte#L179-L183
add:
scrollPaginationEnabled.set(false);after allChatsLoaded = false;
for me it seems fixes the issue
@silentoplayz commented on GitHub (Oct 23, 2025):
@lenz1111 This issue hasn't been solved yet, so a PR is definitely welcome! And while I wasn't able to reproduce the issue myself, I'm sure others would be happy to test your PR to see if it solves the problem, if you were to submit one.