Despite being told to not run commands with pipes (since it breaks terminal formatting completely as well as basically, well, never working) it will try to run piped commands (usually with head or tail) over and over and over, every 3-4 minutes. This is all before filling up the context even once.
Steps to Reproduce
Do things that makes it want to execute commands.
Expected Behavior
I expect it to follow instructions and stop using commands that do not work.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
This is a known issue with the new terminal implementation on Windows. Piped commands (for example those using head or tail) can fail and break the terminal formatting.
Please try this workaround:
Open Cursor Settings Ctrl+Shift+J
Go to the Agents tab and find “Inline Editing & Terminal”
Enable “Legacy Terminal Tool”
Press Ctrl+Shift+P and select “Terminal: Kill All Terminals”
Fully restart Cursor
Test Composer again
This should fix the issue with repeated failures of piped commands. Let me know if this helps
Also, starting a new session can sometimes help, since the current one may have too much stale context and the model may stop following your instructions. This can be related to hallucinations.
Please also check if your project has any specific rules configured