mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #13800] feat: confirmation on deleting chat with shift key pressed #17037
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 @ibuki2003 on GitHub (May 12, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13800
Check Existing Issues
Problem Description
If the Shift key is held down, the delete chat button is directly accessible without the menu, and pressing it deletes the data immediately without any confirmation. While this shortcut improves efficiency, the absence of a confirmation dialog increases the risk of accidental data deletion.
Desired Solution you'd like
I would like to request an option to configure the deletion behavior such that users can choose between:
This configuration would allow users to balance their preferences for safety and speed, reducing unintended data loss without hindering efficient workflows.
Alternatives Considered
No response
Additional Context
No response
@Classic298 commented on GitHub (May 12, 2025):
This is intentional. This is for quick deletion.
If you do not want this, do not press SHIFT.
Deleting a chat requires pressing the three dots to expand the menu > Delete > [Popup] Confirm Deletion
@tjbck commented on GitHub (May 12, 2025):
Intended behaviour.
@ibuki2003 commented on GitHub (May 12, 2025):
Thank you for your quick response.
However, I would like to raise two concerns for your consideration:
In my experience, the detection whether the Shift key is pressed or not can be unreliable due to factors such as tab switching or focus changes, which may cause the system to incorrectly assume the Shift key is held down. This led to an accidental deletion in my case.
I understand that, since the implementation relies on key event detection, it may be inherently difficult to completely eliminate such issues, which might make fixing this as a bug challenging.
If you think it is appropriate, I would like to file this as a bug report, but I would appreciate your guidance on whether this falls within the scope of a bug or a usage limitation.
Even if the quick deletion shortcut is intentional, allowing a dangerous, non-reversible operation triggered by a single modifier key increases the risk of accidental data loss. From a usability and safety perspective, I believe it would be safer to require at least a confirmation dialog or provide an undo mechanism for such deletions.
In my opinion, introducing a simple configuration option (a switch) to enable or disable the confirmation dialog for Shift-key-enabled deletion would be sufficient.
If such a feature is acceptable, I would be happy to contribute by creating a pull request to add this functionality.
I hope these points can be taken into account to enhance the robustness and safety of the deletion feature.