mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #18761] [MERGED] fix: chat title not generated if title auto generation is off in interface settings #24908
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/18761
Author: @acomarcho
Created: 10/31/2025
Status: ✅ Merged
Merged: 11/1/2025
Merged by: @tjbck
Base:
dev← Head:fix/chat-title-not-generated-if-title-auto-generation-is-off📝 Commits (1)
15cc9b6fix: titles are not generated if title auto-generation is set to false in interface settings📊 Changes
1 file changed (+0 additions, -1 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+0 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch may lead to immediate closure of the PR.Changelog Entry
Description
Fixes a bug reported by @silentoplayz as per this comment: https://github.com/open-webui/open-webui/issues/18717#issuecomment-3462607835
It seems like chat titles are not generated if the title auto generation is set off in interface settings.
A short investigation showed there are some problems introduced by this commit:
3a601e0fc3 (diff-73e28dd627aa137e2c628a274c7493f8d758cc857d7a7e8887652442b733aa88)As you can see, it adds in an extra check for
if tasks[TASKS.TITLE_GENERATION]in the outer block when it's supposed to be put in the inner block. It makes the branch unreachable, thus the title of the chat is not generated.Added
None
Changed
None
Deprecated
None
Removed
None
Fixed
Security
None
Breaking Changes
None
Additional Information
None
Screenshots or Videos
Before fix:
https://github.com/user-attachments/assets/e1f00b26-99ea-4f82-9b2a-250d79e56155
After fix:
https://github.com/user-attachments/assets/4b358c82-d323-4ac6-a762-255650f02783
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.