From fd47370e851c3fcb55ba69aec39488aaec7f4b02 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Thu, 15 Oct 2026 05:12:11 -0400 Subject: [PATCH] fix: an imported chat shows its tags (#32454) --- backend/open_webui/routers/chats.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/open_webui/routers/chats.py b/backend/open_webui/routers/chats.py index 2a4e8ca033..d91d5c39ba 100644 --- a/backend/open_webui/routers/chats.py +++ b/backend/open_webui/routers/chats.py @@ -864,6 +864,9 @@ async def import_chats( try: chats = await Chats.import_chats(user.id, form_data.chats, db=db) + await Tags.ensure_tags_exist( + list({tag_id for chat in chats for tag_id in (chat.meta or {}).get('tags', [])}), user.id, db=db + ) await publish_event( request, EVENTS.CHAT_IMPORTED,