这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@MrSimonC

Description

@MrSimonC

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:

  • Operating System: Windows (docker) and MacOS (desktop)
  • Application Version: v1.2.4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    possible bugBug was reported but is not confirmed or is unable to be replicated.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions