Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
In the Cursor 3 Agents Window, Archive can remove a local worktree even when it contains substantial uncommitted changes. Cmd+Shift+E triggers Archive immediately with no confirmation. The conversation itself can be unarchived, but the deleted worktree and its uncommitted state are not restored with it.
Steps to Reproduce
- Start a local agent that is working in an isolated worktree.
- Let the agent make uncommitted changes in that worktree.
- In the Agents Window, press Cmd+Shift+E (also familiar as the Explorer shortcut in the IDE), or invoke Archive.
- The agent is archived immediately and its local worktree directory is removed.
- Unarchive the conversation. The previous worktree and its uncommitted files are not automatically restored.
I reproduced this accidentally twice.
Expected Behavior
If an agent has a dirty worktree, unpushed commits, or an active task, Archive should show a confirmation that clearly explains what will happen to the local workspace. Dirty changes should be preserved or safely snapshotted before teardown.
Ideally, Agents Window shortcuts should also be configurable so Archive can be remapped or unbound. Any Undo action should restore both the conversation and its worktree, not only make the chat visible again.
Operating System
MacOS
Version Information
Cursor 3.14.7 on macOS
Additional Information
In my concrete case, the worktree contained roughly 60 modified files and thousands of changed lines. The branch itself did not contain that uncommitted work. Recovery required reconstructing edits from Cursor’s agent transcript history, recreating the worktree, reapplying fixes, restoring local configuration, and rerunning verification. I had to do this twice; without the transcript cache, the work could have been lost.
This makes Archive a soft-delete at the conversation level but a potentially destructive teardown at the workspace level.
Cross-app shortcut behavior increases the chance of accidental activation: I regularly switch between Codex and Cursor, and Cmd+Shift+E does not perform a destructive or state-changing action in Codex.
Related discussions:
- How do I set keyboard shortcuts in Agents Window?
- Original shortcut to go to directory sidebar cmd+shift+E is not archiving chats in Cursor 3
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor