[GH-ISSUE #12812] issue: The chat title will not be set as the first prompt when the title auto generation is turned off #55386

Closed
opened 2026-05-05 17:30:16 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @ZUIcat on GitHub (Apr 13, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12812

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Pip Install

Open WebUI Version

v0.6.4

Ollama Version (if applicable)

No response

Operating System

Windows 10

Browser (if applicable)

Edge v135.0.3179.73

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have listed steps to reproduce the bug in detail.

Expected Behavior

When the title auto generation is turned off, the chat title should be the first prompt.

Actual Behavior

When the title auto generation is turned off, the chat title not changed.

Steps to Reproduce

I have briefly read the code, and it is probably designed in the same way. But now, when the title auto generation is turned off, the chat title has not changed.

In the commit aca37f592d

I hit a breakpoint and found that at line 1634 of Chat.svelte, the settings?.title is equal tonull, so the background_tasks.title_generation will always be true. So in line 959 of middleware.py, the tasks[TASKS.TITLE_GENERATION] will always be true. But when title auto generation is turned off, the if res and isinstance(res, dict) will not pass, the JSONResponse is not a dict, so there is no place to update the chat title.

Logs & Screenshots

Image

Additional Information

No response

Originally created by @ZUIcat on GitHub (Apr 13, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/12812 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Pip Install ### Open WebUI Version v0.6.4 ### Ollama Version (if applicable) _No response_ ### Operating System Windows 10 ### Browser (if applicable) Edge v135.0.3179.73 ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior When the title auto generation is turned off, the chat title should be the first prompt. ### Actual Behavior When the title auto generation is turned off, the chat title not changed. ### Steps to Reproduce I have briefly read the code, and it is probably designed in the same way. But now, when the title auto generation is turned off, the chat title has not changed. > In the commit aca37f592d0dedea2529fcb4304e4ff39e0c1219 I hit a breakpoint and found that at line 1634 of `Chat.svelte`, the `settings?.title` is equal to`null`, so the `background_tasks.title_generation` will always be true. So in line 959 of `middleware.py`, the `tasks[TASKS.TITLE_GENERATION]` will always be true. But when title auto generation is turned off, the `if res and isinstance(res, dict)` will not pass, the `JSONResponse` is not a `dict`, so there is no place to update the chat title. ### Logs & Screenshots ![Image](https://github.com/user-attachments/assets/3086a124-49d3-4729-931a-6ef07e1d3def) ### Additional Information _No response_
GiteaMirror added the bug label 2026-05-05 17:30:16 -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#55386