Skip to content

fix(webui): confirm before clearing chat history#3893

Open
Chessing234 wants to merge 1 commit into
lm-sys:mainfrom
Chessing234:fix/3881-clear-history-confirmation
Open

fix(webui): confirm before clearing chat history#3893
Chessing234 wants to merge 1 commit into
lm-sys:mainfrom
Chessing234:fix/3881-clear-history-confirmation

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

  • Adds a confirmation step before the Clear History action in Gradio web UIs
  • Prevents accidental loss of conversation history from misclicks while scrolling

Fixes #3881

Test plan

  • Open the Gradio web UI and click Clear History
  • Verify a confirmation prompt appears and history is only cleared after confirming
  • Verify canceling leaves existing chat history intact

Made with Cursor

Add a browser confirmation dialog to Clear history buttons in the main
chat and arena UIs to prevent accidental history loss.

Fixes lm-sys#3881

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI/UX improvement: Add confirmation for "Clear History" button

1 participant