Bug description
Since updating to the latest version of Cursor on Windows, I frequently encounter two problems when using Agent:
- Worktree-related errors cause the Agent task to terminate
- Agent tasks sometimes stop unexpectedly without any clear error
This happens frequently enough to affect normal use of long-running Agent tasks.
Environment
- OS: Windows 11
- Cursor: Latest version
- Git: Installed and working normally
- Agent: Cursor Agent
- Project: Local Git repository
Problem 1: Worktree error interrupts the Agent
During an Agent task, Cursor sometimes reports a Worktree-related error.
After the error occurs, the current Agent task is terminated/interrupted instead of recovering and continuing.
This is particularly problematic for long-running tasks because the Agent may have already:
- Modified multiple files
- Executed multiple terminal commands
- Completed part of the requested implementation
After the Worktree error, the task stops and I have to manually ask the Agent to continue.
Expected behavior
A Worktree failure should ideally:
- Provide a clear error message
- Preserve the current Agent task state
- Recover automatically when possible
- Or fall back to the current workspace if safe
A Worktree failure should not cause the entire Agent task to unexpectedly terminate.
Problem 2: Agent randomly stops
There are also cases where the Agent stops in the middle of a task without an obvious error.
For example:
- Start a relatively long coding task.
- Agent begins modifying files and executing commands.
- Agent works normally for some time.
- The task suddenly stops.
- There is no clear explanation for why the task was terminated.
- I have to manually send another message such as “continue”.
This makes it difficult to rely on Cursor for long-running development tasks.
Reproduction
The issue is not 100% deterministic, but it occurs frequently during longer Agent sessions.
Typical scenario:
- Windows 11
- Local Git repository
- Agent mode
- Multiple file modifications
- Multiple terminal/tool calls
- Long-running task
The longer the task runs, the more likely I seem to encounter an interruption.
Expected behavior
Agent should continue executing the requested task until:
- The task is completed;
- User intervention is required;
- A genuine unrecoverable error occurs; or
- The Agent explicitly reports that it cannot continue.
If an internal Worktree operation fails, the Agent should not silently/automatically terminate the entire task.
Additional information
I can provide:
- Screenshots of the Worktree errors
- Cursor version/build number
- Agent logs
- Git configuration
- Reproduction steps
- Relevant diagnostic logs
if these would help investigate the issue.
Could the Cursor team confirm whether there are known Worktree/Agent stability issues on Windows in the latest release?