Cursor cli does not exit after process end

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

After running the Cursor Agent, once the process finishes, the command does not exit as expected.

Steps to Reproduce

cursor-agent -p --force --output-format text

also i use api key

Expected Behavior

exit command with 0 code

Screenshots / Screen Recordings

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

cli version: 2025.09.18-7ae6800

For AI issues: which model did you use?

sonnet-4

5 posts were merged into an existing topic: Cursor-agent -p non-interactive not exiting at the end