Cursor deletes active git worktree regulary

Hello,

can anyone explain why Cursor deletes an active git worktree without asking if I want this?

Best regards

Hi there!

We detected that this may be a bug report, so we’ve moved your post to the Bug Reports category.

To help us investigate and fix this faster, could you edit your original post to include the details from the template below?

Bug Report Template - Click to expand

Where does the bug appear (feature/product)?

  • Editor, Tab & Chat (autocomplete, Composer, in-editor agent)
  • Terminal & commands
  • Models, pricing & API keys (availability, Auto/Max, BYOK/Bedrock)
  • MCP & tools
  • Cloud Agents & Automations (cursor.com/agents, scheduled/event)
  • BugBot & Code Review
  • Cursor CLI
  • Cursor Mobile
  • Remote (SSH / Dev Containers / WSL)
  • Account, billing & login
  • Something else…

Describe the Bug
A clear and concise description of what the bug is.


Steps to Reproduce
How can you reproduce this bug? We have a much better chance at fixing issues if we can reproduce them!

  1. …
  2. …
  3. …

Expected Behavior
What is meant to happen here that isn’t working correctly?


Screenshots / Screen Recordings
If applicable, attach images or videos (.jpg, .png, .gif, .mp4, .mov)


Operating System

  • Windows 10/11
  • MacOS
  • Linux

Version Information

  • For Cursor IDE: Menu → About Cursor → Copy
  • For Cursor CLI: Run agent about in your terminal
IDE:
Version: 2.xx.x
VSCode Version: 1.105.1
Commit: ......

CLI:
CLI Version 2026.01.17-d239e66

For AI issues: which model did you use?
Model name (e.g., Sonnet 4, Tab…)


For AI issues: add Request ID with privacy disabled
Request ID: f9a7046a-279b-47e5-ab48-6e8dc12daba1
For Background Agent issues, also post the ID: bc-…


Additional Information
Add any other context about the problem here.


Does this stop you from using Cursor?

  • Yes - Cursor is unusable
  • Sometimes - I can sometimes use Cursor
  • No - Cursor works, but with this issue

The more details you provide, the easier it is for us to reproduce and fix the issue. Thanks!

But it can be a wrong configuration on my side …

I am using the linux rpm package. Can’t click the checkboxes in your answer. Can’t find the version in the agent and copied it from the IDE:

Version: 3.11.19
VS Code Extension API: 1.125.0
Commit: bf249e6efb5b097f23d7e21d7283429f0760b740
Date: 2026-07-12T21:39:24.175Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Linux x64 7.1.3-201.fc44.x86_64

Hey @PlanB!

This looks a lot like Cursor removes active worktree directories and then closes/crashes unexpectedly, which spawned a bug report that is still open on our side. Could you have a look?

@kevinn also shared some tweaks that might help

Hi @Colin !

Thank you very much for your reply. The case you linked to has some similarities, but in my case the chat is still there and the Cursor app isn’t crashing. Perhaps the problem was triggered when I clicked the archive button on another chat. I have a question about this: where can I find archived chats?

You can filter for them here!

Just for your information: I’ve updated to the latest version. But before I did that, the issue occurred again. This time, it affected the other chat that I’d pinned. Perhaps this information will be helpful? In short:

  1. Pinned chat → archived
  2. Pinned chat → Git working directory was deleted

Perhaps it was just a coincidence that I haven’t been able to reproduce the error (so far).

That wasn’t the cause of the problem. It happened again. This time, I didn’t have any chats pinned. No chat was running. It just happened out of the blue.

For all chats … All worktrees are deleted

I’ve hit this twice and both times it has resulted in unacceptable data loss!

Most likely it is to do with worktree cleanup. This is a dangerous feature that should never run when there are unstaged changes in the worktree.

This should literally be the highest pri bug you have right now - randomly deleting user files for no reason!

The ā€œdata lossā€ we have paid for. I am pretty sure that I’ve lost 10% usage limit because of that. Beside the time, electricity, …
I hope they fix it soon. Had this issue with no other agent IDE. May I ask which OS you are running?

Windows.

It happened again! In case you have the same issue and you want a compensation:
```
…
Sorry about the git worktree issue you’ve been experiencing. Unfortunately, I’m not able to process a compensation request for your subscription as it doesn’t meet our refund eligibility requirements.

You can cancel your subscription anytime via the ā€˜Manage subscription’ button in your Cursor dashboard at https://cursor.com/dashboard. Your cancellation will take effect at the end of your current billing cycle, and you’ll continue to have access until then.

Let me know if you need anything else!

Best,

Sam
Cursor’s AI Support Assistant
```