mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-12 01:54:38 -05:00
feat: ask user for confirmation when deleting message #374
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 @dannyl1u on GitHub (Feb 29, 2024).
Is your feature request related to a problem? Please describe.
Currently, messages can be deleted with a single click, leading to accidental deletions. Since deleting a message also removes all subsequent messages, this can result in significant data loss without the user's intention.
Describe the solution you'd like
Reuse the currently implemented UX for confirming deleting entire confirmations.
Describe alternatives you've considered
The existing system does not require confirmation before message deletion. While straightforward, this approach lacks safeguards against unintended deletions, highlighting the need for the proposed solution.
Additional context
Original delete message PR in https://github.com/open-webui/open-webui/pull/789
@dannyl1u commented on GitHub (Feb 29, 2024):
I'll work on this.
@taidbui commented on GitHub (Feb 29, 2024):
@dannyl1u From the latest update, I can confirm that when I deleted a certain message, the subsequent messages were not deleted altogether. Therefore, it would not be an issue. Adding confirmation will make user experience worse because we have to click twice for an action (imagine have to delete a few messages...). Therefore, I suggest to have an option in settings to toggle this rather than imposing as a default feature.
@dannyl1u commented on GitHub (Feb 29, 2024):
@taidbui thanks for letting me know, will log that bug in a separate issue!
@dannyl1u commented on GitHub (Mar 6, 2024):
Closing this feature request as we have decided to not delete all subsequent messages, only the selected prompt/response pair. Thus, a confirmation is not needed at this time