Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
Cursor CLI stopped working (stuck on “reconnecting…” whenever a prompt is sent) when the terminal is on a specific Directory.
Steps to Reproduce
I am not sure if that is the reason this happened, but my theory is:
- Use cursor CLI in the directory via an external terminal tool (I Used Warp)
- close the terminal session while cursor is thinking, from the terminal UI without cntrl+C to cancel or /quit to stop agent session
(In warp, this will trigger a popup ensuring you want to kill running processes on that terminal instance - confirm) - In a new terminal window (any tool - native terminal or external tool) cd the same directory
- run “agent” to start the cursor CLI session
- submit any prompt
- The agent will get stuck in an endless “Reconnecting…” loop, only on that specific directory (even a worktree of the same repo will work fine)
Expected Behavior
The agent should be able to work on the directory.
Screenshots / Screen Recordings
Operating System
MacOS
Version Information
cursor CLI version: 2026.06.04-5fd875e
Warp version: v0.2026.06.03.09.49.stable_02
(I don’t think Warp version matters, but in case that helps)
Additional Information
I also have the cursor Debug Logs from one bugged session, attached them to the first comment
Things I already tried:
- logging in and out
- resetting network data
- with/without VPN etc.
- resetting Warp caches, uninstalling and reinstalling warp
- Restarting device
- cleaning running agent processes via terminal
My next move will be to re-clone the repo, which I suspect will fix it as this seems like a broken cache state type situation, but either way wanted to report and to find out why it happened (I’m a curious nerd).
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor
