Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
When using -p to execute cursor-agent command under headless mode, it can not finish even the result is generated completely, you have to hit Ctrl+C to terminate it.
Steps to Reproduce
- Use -p for a headless command, like: cursor-agent -p “Generate a txt file to include top largest density materia”
- Check execution progress, we can see txt file is generated well, and it return result message like {“type”:“result”,“subtype”:“success”,“duration_ms”:24429,“duration_api_ms”:24429,“is_error”:false …
- Command is not finished properly, you have to hit Ctrl+C for shell interaction return.
Expected Behavior
Return to shell after completing command execution
Screenshots / Screen Recordings
Operating System
Linux
Current Cursor Version (Menu → About Cursor → Copy)
2025.09.04-fc40cd1
Does this stop you from using Cursor
Yes - Cursor is unusable
