even with the -p (print) flag, the process doesn’t release the terminal. I still need to press CTRL+C on macOS to get back control and type new commands.
Is there a way to fix this, or some configuration I can change so the CLI exits cleanly in headless/non-interactive mode?
Steps to Reproduce
Run
cursor-agent -p "<prompt>" && echo "i'm here"
Expected Behavior
i’m here is printed out.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
It is really painful. @condor can Cursor team please prioritize on this? It makes the execution of CI/CD pipeline difficult. Currently, I have to force kill the process.