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

[BUG]: Pasting with Ctrl+V does not override selected text, instead pastes at end of prompt (Regression in 1.2.3) #2423

@MrSimonC

Description

@MrSimonC

How are you running AnythingLLM?

Docker (local)

What happened?

When using the Docker version 1.2.3 of Anything LLM, I am experiencing an issue with pasting text using Ctrl+V. If I select some text to correct halfway through my prompt and then attempt to paste using Ctrl+V, the selected text is not overridden and replaced. Instead, the selected text is unselected and the pasted text is inserted at the end of the prompt.

Regression:

This behavior worked as expected in version 1.2.2, where the selected text was correctly overridden and replaced with the pasted text. This issue appears to be a regression introduced in version 1.2.3.

Related pull request:

This issue appears to be related to changes made in pull request #2386.

Environment:

  • Anything LLM version: 1.2.3 (Docker)
  • Operating System: Windows 10 / WSL2 docker
  • Browser: MS Edge

Reproduction frequency:

100% of the time

Please let me know if you need any further information to reproduce and fix this regression!

image

image

Are there known steps to reproduce?

Steps to reproduce:

  1. Run Anything LLM using Docker version 1.2.3
  2. Enter a prompt and select some text to correct halfway through
  3. Copy some text to paste
  4. Press Ctrl+V to paste the text

Expected behavior:

The selected text should be overridden and replaced with the pasted text.

Actual behavior:

The selected text is unselected and the pasted text is inserted at the end of the prompt.

Metadata

Metadata

Assignees

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