mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[PR #17857] [MERGED] feat: add backend handling for unarchiving all chats #47625
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/17857
Author: @silentoplayz
Created: 9/28/2025
Status: ✅ Merged
Merged: 9/28/2025
Merged by: @tjbck
Base:
dev← Head:feat-bulk-unarchive📝 Commits (1)
a572cf4feat: add backend handling for unarchiving all chats📊 Changes
4 files changed (+77 additions, -9 deletions)
View changed files
📝
backend/open_webui/models/chats.py(+9 -0)📝
backend/open_webui/routers/chats.py(+10 -0)📝
src/lib/apis/chats/index.ts(+32 -0)📝
src/lib/components/layout/ArchivedChatsModal.svelte(+26 -9)📄 Description
Pull Request Checklist
devbranch.Changelog Entry
Description
Added
/chats/unarchive/allto unarchive all of a user's chats in a single request.unarchive_all_chats_by_user_idmethod in the Chats database model.unarchiveAllChatsAPI function in the frontend to call the new backend endpoint.Changed
unarchiveAllHandlerfunction inArchivedChatsModal.sveltenow calls the newunarchiveAllChatsAPI function instead of looping through and unarchiving chats one by one.Removed
ArchivedChatsModal.svelte.Fixed
Additional Information
Screenshots and Videos
Time to unarchive all archived chats previously (MANY REQUESTS, COSTLY, SLOW):
Time to unarchive all archived chats with these changes applied (99% LESS REQUESTS, >1MB, FAST):
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.