Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
cursor-agent -p (print/headless) hangs indefinitely with zero bytes on stdout/stderr. Auth is fine (cursor-agent status shows logged in). On longer runs (8+ min) ripgrep child processes start but no output is ever emitted.
Steps to Reproduce
Inside a git repo workspace:
cursor-agent -p --force --output-format text “Reply with just OK”
Also tried: --trust -p, stream-json, stdin closed (< /dev/null), trivial and real prompts — all identical (0 bytes, hang).
Expected Behavior
Command prints model response to stdout and exits.
Operating System
MacOS
Version Information
CLI:
cursor-agent 2026.07.01-41b2de7 (cursor-agent update → Already up to date)
OS: macOS 15.6 (Darwin 24.6.0), Intel MacBook Pro
Additional Information
Likely root cause (from related forum reports + our case): TCP connections to Cursor’s API backend hang silently with no output. Other users self-recover after 10–15s; our case persists 5+ min with zero bytes.
Possibly related: cursor-agent worker from desktop app running concurrently (forum topic 142677).
Impact: headless/scripted use completely broken (nightly cron agent produces nothing).
Similar: topics 150246 (closed), 132641.
Does this stop you from using Cursor
Yes - Cursor is unusable