Hello,
can anyone explain why Cursor deletes an active git worktree without asking if I want this?
Best regards
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?
Where does the bug appear (feature/product)?
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!
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
Version Information
agent about in your terminalIDE:
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?
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?
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:
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
```