[BUG]: Pasting with Ctrl+V does not override selected text, instead pastes at end of prompt (Regression in 1.2.3) #2423
Labels
possible bug
Bug was reported but is not confirmed or is unable to be replicated.
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:
Reproduction frequency:
100% of the time
Please let me know if you need any further information to reproduce and fix this regression!
Are there known steps to reproduce?
Steps to reproduce:
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.
The text was updated successfully, but these errors were encountered: