mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
Can't delete chat (dev branch) #2248
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?
Originally created by @bgeneto on GitHub (Sep 30, 2024).
Bug Report
Installation Method
Docker compose linux
Environment
Open WebUI Version: v0.3.30
Ollama (if applicable): 0.3.12
Operating System: Debian 12
Browser (if applicable): Chrome 120.0
Confirmation:
Expected Behavior:
The user should be able to delete a chat successfully, and the system should handle the deletion request without errors.
Actual Behavior:
When attempting to delete a user chat, the system raises a KeyError exception due to a missing configuration key. The error occurs in the delete_chat_by_id function in the chats.py file.
Description
Bug Summary:
The delete_chat_by_id function in the chats.py file attempts to access a configuration key that does not exist, resulting in a KeyError exception. This prevents the user from deleting a chat successfully.
Reproduction Details
Steps to Reproduce:
Start the Open WebUI application.
0. Create a new user (non-admin)
Logs and Screenshots
Browser Console Logs:
Docker Container Logs:
Screenshots/Screen Recordings (if applicable):
Additional Information
I'm using de dev branch pulled today (2024-09-30)
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@silentoplayz commented on GitHub (Oct 1, 2024):
I'm personally unable to replicate the error with the reproduction steps provided. I am also on the dev branch using the latest commit.