text-generation-webui icon indicating copy to clipboard operation
text-generation-webui copied to clipboard

Deleting last message, in some scenarios, irreversably wipes entire chat log

Open Kosyne opened this issue 1 year ago • 0 comments

Describe the bug

This is user error and can be avoided, but it could be handled more gracefully on the backend.

Attempting to remove last message on the webpage while the server is no longer up deletes history, and when the server is brought up, the server seems to sync or otherwise remove that history to match the bugged web session.

Expected behavior: Upon attempting to remove last reply with the server down/no connection to the server, an error should be thrown and no action taken. Under no situation should it delete more than one message.

Is there an existing issue for this?

  • [X] I have searched the existing issues

Reproduction

Steps to reproduce:

  1. Launch locally via commandline, and conversate with AI to build a chat log.
  2. close the the cmd window, but keep the browser window open
  3. press CTRL+Shift+Backspace or just manually select "Remove Last Reply"
  4. The entire chat history is deleted.
  5. Load text-generation-webui
  6. History is now deleted even in the logs/ directory

Screenshot

No response

Logs

No errors

System Info

Windows, latest git pull of text-generation-webui as of Feb 10, 2024.

Kosyne avatar Feb 12 '24 04:02 Kosyne