[PR #20212] [MERGED] fix: Chat export and Ask/Explain popup regressions #41136

Closed
opened 2026-04-25 13:26:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/20212
Author: @Classic298
Created: 12/27/2025
Status: Merged
Merged: 12/30/2025
Merged by: @tjbck

Base: devHead: fix-20146


📝 Commits (2)

📊 Changes

2 files changed (+3 additions, -5 deletions)

View changed files

📝 backend/open_webui/main.py (+1 -1)
📝 backend/open_webui/routers/chats.py (+2 -4)

📄 Description

Changelog Entry

Fixed

  • Fixed /api/v1/chats/all endpoint returning HTTP 500 due to Chats.get_chats_by_user_id() now returning ChatListResponse instead of a list
  • Fixed Ask/Explain popup returning HTTP 400 ('NoneType' object has no attribute 'get') when parent_message is None

Additional Information

Fixes #20146, #20205, #20206

Both bugs are regressions from recent refactoring that changed get_chats_by_user_id() return type and how chat metadata is processed.

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.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/20212 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 12/27/2025 **Status:** ✅ Merged **Merged:** 12/30/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `fix-20146` --- ### 📝 Commits (2) - [`5168104`](https://github.com/open-webui/open-webui/commit/5168104875315de8055bcba358400679fb17b171) init - [`47d52ff`](https://github.com/open-webui/open-webui/commit/47d52ff800f1f7364820d224acf32912a56a9f06) Merge branch 'dev' into fix-20146 ### 📊 Changes **2 files changed** (+3 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/main.py` (+1 -1) 📝 `backend/open_webui/routers/chats.py` (+2 -4) </details> ### 📄 Description # Changelog Entry ### Fixed - Fixed `/api/v1/chats/all` endpoint returning HTTP 500 due to `Chats.get_chats_by_user_id()` now returning ChatListResponse instead of a list - Fixed Ask/Explain popup returning HTTP 400 (`'NoneType' object has no attribute 'get'`) when `parent_message` is `None` --- ### Additional Information Fixes #20146, #20205, #20206 Both bugs are regressions from recent refactoring that changed get_chats_by_user_id() return type and how chat metadata is processed. ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 13:26:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#41136