Feature request for product/service
Cursor IDE
Describe the request
Feature Request: Version History / Selective Restore for Agent Edits
Hi Cursor Team,
I’d like to suggest a feature that would significantly improve workflow safety when using agents: version control for agent-generated changes that is independent of the chat undo/keep flow.
Problem
Currently, when an agent makes multiple edits, the only available options are often:
- Keep all changes, or
- Undo everything.
In real usage, there are situations where I might:
- Accidentally click Undo
- Want to keep only some earlier edits (for example, the first 2 out of 4 changes)
- Need to revisit a previous state after several iterations
Right now, it’s difficult to selectively restore earlier edits without losing useful work.
Proposed Solution
Introduce a version history or edit timeline for agent actions, similar to the multi-version editing experience in Gemini Canvas or Google Docs history.
Key ideas:
- Each agent change becomes a discrete version snapshot.
- Ability to view a timeline of edits.
- Option to restore or branch from any previous version.
- Support partial acceptance (e.g., keep versions 1–2 but discard 3–4).
- Versions persist even if the chat state changes.
Example Use Case
An agent performs 4 sequential edits:
- Refactor imports
- Improve function naming
- Change logic structure
- Add experimental optimization
If edit #4 causes issues, I should be able to revert to version #2 directly — without losing earlier useful improvements.
Benefits
- Prevents accidental loss of good edits
- Encourages experimentation with agents
- Reduces friction during iterative development
- Makes Cursor feel more like a safe collaborative coding environment
I believe this would make agent workflows far more flexible and robust.
Thanks for considering this!
Screenshot / Screen Recording
Operating System (if it applies)
MacOS
