Mintplex-Labs / anything-llm

The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, and more.
https://anythingllm.com
MIT License
27.48k stars 2.77k forks source link

[BUG]: Lack of Undo Functionality for Paste in Main Prompt Text Box #2590

Closed MrSimonC closed 1 week ago

MrSimonC commented 2 weeks ago

How are you running AnythingLLM?

Docker (local)

What happened?

Currently, when users enter text into the main prompt text box of Anything LLM, the undo functionality does not work after pasting text. When users press Ctrl+Z on Windows or Command+Z on Mac, the pasted text remains in the prompt box and cannot be undone. This forces users to manually delete the pasted text, which can be inconvenient and disrupts the workflow.

Environment:

Possible Solution: Investigate and implement proper handling of the undo operation for paste actions in the main prompt text box, ensuring that Ctrl+Z (Windows) and Command+Z (Mac) function as expected.

Additional Context: This issue affects the user experience by adding unnecessary steps to correct mistakes or changes, which can hinder productivity.

Are there known steps to reproduce?

Steps to Reproduce:

  1. Open the main prompt text box in Anything LLM.
  2. Paste any text into the text box.
  3. Attempt to undo the paste action by pressing Ctrl+Z (Windows) or Command+Z (Mac).
  4. Observe that the pasted text remains and is not undone.

Expected Behavior: Pressing Ctrl+Z (Windows) or Command+Z (Mac) should undo the paste operation and remove the pasted text from the main prompt text box.

Actual Behavior: The pasted text stays in the prompt text box and is not undone, requiring manual deletion.