New line not correctly inserted in agent mode chat

Describe the Bug

When insert a new line in agent chat (shift + enter), mouse cursor will move to random place and insert new line there. See screenshot attached. My mouse cursor was at the top paragraph instead of the bottem. This can be fixed by first move mouse cursor, type a character, then insert new line.

Steps to Reproduce

Happens from time to time when edit a chat in agent time, but not always.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 0.49.6 (Universal)
VSCode Version: 1.96.2
Commit: 0781e811de386a0c5bcb07ceb259df8ff8246a50
Date: 2025-04-25T04:39:09.213Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Hey, I can’t reproduce this issue in version 1.0. Could you update and check if the problem persists?

Hi, after upgraded to version 1.0. I confirm the problem persists. And it is more frequently.

Attached two figures to demo. In first figure I put my cursor in the middle, but after type shift-enter, the cursor moves to the end of text and create a new line.


1 Like