Agent file edits do not create a Timeline/Local History entry

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When I accept agent edits using Keep/Apply, the file changes on disk but no new Timeline / Local History entry is created for that change. A Timeline entry appears only after I manually press Ctrl+S in the editor. This makes agent-driven changes hard to audit and rollback using Timeline.

Steps to Reproduce

Open any file in Cursor.
Use Agent to make a small change (single-line replace).
Click Keep/Apply to accept the agent changes.
Open Timeline for that file.
Observe there is no new Local History entry corresponding to the agent change.
Press Ctrl+S while the editor is focused.
Observe a Local History entry now appears.

Expected Behavior

Accepting agent changes via Keep/Apply should create a new Timeline/Local History checkpoint (or trigger an editor-level save that results in a new entry), without requiring the user to manually press Ctrl+S.

Operating System

Windows 10/11

Version Information

Version: 3.3.27 (system setup)
VSCode Version: 1.105.1
Commit: 80b138a7a0a948e1a798e9ed7867d76a1ba9a310
Date: 2026-05-08T02:26:22.498Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Additional Information

Related feature request discussing version history for agent changes: Version Control

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report. This behavior is basically expected, even if it’s not obvious.

VS Code Timeline and Local History depend on editor save events, and not all ways of accepting agent edits go through them. Some parts of the acceptance flow and direct file writes by tools bypass the working copy save. We’ve looked into this before, and a ticket about it was closed without a fix.

To track and roll back agent changes, Cursor uses checkpoints. You can see them right in the conversation bubble in the agent chat. That’s the intended rollback mechanism for agent edits, not Timeline. More details: Agent Review | Cursor Docs

If you specifically want a Timeline entry, the only workaround right now is to press Ctrl+S after Keep or Apply, or enable VS Code autosave with a short delay. Extending Local History to cover agent acceptance is more of a feature request, and you already have a separate thread for it: Version Control. It’s worth upvoting so tracking stays there.