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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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:
dev← Head:fix-20146📝 Commits (2)
5168104init47d52ffMerge branch 'dev' into fix-20146📊 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
/api/v1/chats/allendpoint returning HTTP 500 due toChats.get_chats_by_user_id()now returning ChatListResponse instead of a list'NoneType' object has no attribute 'get') whenparent_messageisNoneAdditional 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.