Deleted my entire project from local disk when I rejected changes
Pre-submit Checks
- [x] I have searched Warp bugs and there are no duplicates
- [x] I have searched Warp known issues page and my issue is not there
- [ ] I have an issue with AI and have included the debugging ID (Optional, but helps expedite the AI quality fix). Debugging ID instructions
- [x] I have technical issue and have included the logs (optional, but helps expedite the bug fix). Log instructions
Describe the bug
Hello,
I was checking out Warp as a potential move from Cursor, and asked it a few questions just to get a baseline comparison of the models. I added my main git repo, as I'm accustomed to in Cursor, and everything seemed OK. The window on the right showed a TON of uncommitted changes after I asked some questions and I thought the AI had taken some liberties I had not asked, so I rejected. Following that rejection, every python script it read, as well as many .md and reference files, were deleted; some files remained that were not inside my current working directory but were written to 0 bytes. I spent hundreds in credits and 60-70 hours in the last week since the last git push, which is on me for not double checking, but this is kind of crazy. The UI locked up a couple of times on me and then poof.
To reproduce
Hit reject on uncommitted changes (this should probably specify whether it means uncommitted by Warp or uncommitted to git
Expected behavior
My files are not deleted
Screenshots, videos, and logs
Operating system (OS)
macOS
Operating system and version
OS14
Shell Version
zsh 5.9
Current Warp version
No response
Regression
Yes, this bug started recently or with an X Warp version
Recent working Warp date
Never?
Additional context
I honestly don't know where to go from here this is such an insane event. Even my builder scripts and dependency references are gone.
I can pull from a week ago, but...wow
Does this block you from using Warp daily?
Yes, this issue prevents me from using Warp daily.
Is this an issue only in Warp?
Yes, I confirmed that this only happens in Warp, not other terminals.
Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e
None
Hey - sorry to hear that. To be clear there's a few different things here:
- Agent Mode suggested code diffs - these appear inline in your pane, when using Agents in Warp. These are tentative changes and are NOT on your filesystem yet (until you accept them). Rejecting a change simply doesn't apply it to your filesystem. See https://docs.warp.dev/code/code-overview.
- The Code Review pane - this shows uncommitted changes comparing your current branch to the default branch (by default), and you can discard uncommitted changes here, though it's quite clear what this does with a modal like this:
You can also choose to stash changes instead of discard in this modal, which saves them in git's stash. See https://docs.warp.dev/code/code-review for more details.
If I'm interpreting what you're saying correctly - it sounds like you're referring to (2)? Not quite sure how we can make this clearer, I think that modal is quite explicit, but open to ideas. But yes, more broadly, I strongly recommend committing often and using version control with Git. You can also add a rule to Warp's Agents to encourage them to commit often which can be useful - https://docs.warp.dev/knowledge-and-collaboration/rules.
Yes, referring to 2. I Took me a minute to get a handle on the differences after being used to how Cursor functions. After rejecting following a massive UI hang / pinwheel and seeing a flood of changes it deleted everything. How is this appropriate behavior for the app? Sure, don't push yet, but also don't delete every single file (folders remained - only files removed) from my working directory. This is pretty insane and is going to cost me a ton, not to mention an incredible amount of work, to rebuild.
We're still missing some information before we can move this forward. If the problem is still happening on the latest version of Warp, an update with any relevant logs, screenshots, or a short video would help a lot.
If there's no activity after 3 business days, we'll close this out to help keep the tracker tidy.
This is part of an automated backlog review and may be inaccurate. If you believe this assessment is wrong, please let us know.
This issue has been automatically closed because it was labeled needs-info and received no response for 3 business days. If you have the requested information, please reply and we will reopen.