Skip to content

MCP: checkpoint to revert a whole agent turn #1047

Description

@EtienneLescot

Problem

An MCP client like Claude Code can chain several edits in one turn. Each call lands as its own undo step (electron/mcp/openscreen-mcp-server.ts), so reverting a 5-edit turn takes 5 Ctrl+Z, interleaved with any manual edits made meanwhile.

The undo stack is also in memory and capped at 50 steps (src/lib/ai-edition/store/undoStack.ts). Reopening the project loses it.

So there is no reliable way to say "revert everything the agent just did".

What already exists

  • Revision-guarded apply: an edit made mid-call is never overwritten.
  • replaceTimeline, removeTrim, removeModifier and removeClip carry destructiveHint, so Claude Code asks before each by default.

Proposal

A checkpoint the client can return to. Two options:

  1. Explicit createCheckpoint / restoreCheckpoint tools, with the server guidance telling the agent to checkpoint before a batch of edits.
  2. An automatic snapshot before each destructive tool, restorable from the editor.

Option 1 matches how agents work in turns. Option 2 needs nothing from the client.

Raised on X by @sunsetsyntax after the v2.0 announcement.

Activity

  1. added
    status: fixed in mainWork is merged into main but may not be in a downloadable release yet.
    status: pending releaseMerged change is waiting for a packaged desktop release.
    on Oct 7, 2026
  2. added this to the Next Release milestone on Oct 7, 2026
  3. github-actions commented on Oct 7, 2026

    @github-actions
    Contributor

    Fixed by #1048 and merged into main.

    This change is assigned to the Next Release release milestone and is not necessarily available in the latest downloadable desktop release yet. It is currently marked as status: pending release until a packaged release containing it is published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststatus: fixed in mainWork is merged into main but may not be in a downloadable release yet.status: pending releaseMerged change is waiting for a packaged desktop release.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions