Editing a previous chat message in agent mode wipes work without warning

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

This is a serious UX failure.

The rewind feature destroys user code without warning
There’s no confirmation dialog
There’s no setting to disable it
This is unacceptable for a professional development tool

Steps to Reproduce

Use Agent Mode

Have multiple requests that modify code

Edit a previous message (intention was to tweak and run again on the CURRENT code, not completely wipe all changes between that message and current)

Expected Behavior

My code is not wiped without any warning whatsoever

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.44 (Universal)
VSCode Version: 1.99.3
Commit: 9d178a4■■■89981b62546448bb32920a8219a5d0
Date: 2025-10-10T15:43:37.500Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 25.0.0

For AI issues: which model did you use?

gpt-5

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. I understand your frustration, losing code changes without warning is definitely unpleasant.

The current behavior is intentional: editing a previous message reverts all code changes from that point to “rewind” the conversation. However, you’re right that there’s no confirmation dialog.

Workaround: instead of editing the message, click the three dots on it and choose “Duplicate Chat.” This will branch from that point and preserve your current conversation and code.

You can also restore previous code states using Checkpoints (use “Restore Checkpoint”).

Your suggestion to add a confirmation dialog is very reasonable and would help prevent accidental data loss. We’ll consider this.