Hi, thanks for reporting an issue with Cursor.
Before you report this, we’d appreciate if you can search this forum to see if this issue has already been reported.
If you have done so, please check this box.
on
Describe the Bug
When starting a new session in the composer agent mode, the first terminal command will work. If you ask it to run another, without selecting “Pop out terminal”, it will most of the time fail with the following error (error can be caught by selecting “Pop out terminal”):
PS /Users/test> curl https://cursor.com | cat
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15 0 15 0 0 163 0 --:--:-- --:--:-- --:--:-- 164
Redirecting...
PS /Users/test> curl https://cursor.com | cat
Oops, something went wrong.
Please report this bug with ALL the details below, including both the 'Environment' and 'Exception' sections.
Please report on GitHub: https://github.com/PowerShell/PSReadLine/issues/new?template=Bug_Report.yaml
Thank you!
### Environment
PSReadLine: 2.3.6+d2e770f93b7a53d8660a6402eb29d1ae1c35e767
PowerShell: 7.4.2
OS: Darwin 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:04 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6020
BufferWidth: 107
BufferHeight: 1
Last 60 Keys:
c u r l Spacebar h t t p s : / / c u r s o r . c o m Spacebar | Spacebar c a t Enter
c u r l Spacebar h t t p s : / / c u r s o r . c o m Spacebar | Spacebar c a t Enter
### Exception
System.InvalidOperationException: Cannot locate the offset in the rendered text that was pointed by the original cursor. Initial Coord: (16, 5) Buffer: (107, 6) Cursor: (17, 0)
PS /Users/test> curl https://cursor.com | cat
% Total % Received % Xferd Average Speed Time Time Time Current, String defaultColor)
Dload Upload Total Spent Left Speed
100 15 0 15 0 0 274 0 --:--:-- --:--:-- --:--:-- 277
Redirecting...t.PowerShell.PSConsoleReadLine.Insert(Char c)
PS /Users/test> PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(PSKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken, Nullable`1 lastRunStatus)
Steps to Reproduce
- Start a new agent session
- Send the message:
run “curl https://cursor.com” or “run ls” - Run it
- Ask it to run it again, run it
Expected Behavior
For the commands to complete successfully.
Screenshots / Screen Recordings
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 0.44.8
VSCode Version: 1.93.1
Commit: f3b5a63019e4e2283033b4db987a35f8413c7570
Date: 2024-12-22T05:48:08.427Z
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0
Additional Information
Within the same agent chat session, if you select popout terminal, it starts a new terminal and then works once more before it fails again.
This was working fine in 0.43 - I had never seen this issue before.
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor