Skip to content

AI: zed removes all AI changes when editing a message with no checkpoints consideration #39997

Closed as not planned

Description

@sigmaSd

Summary

If you edit a message all AI changes will be lost, initially I though this is a design decision,
But know I noticed that if lets say you send 5 messages and with each message there was changes, and you edit the 5th one

I would expect that only the changes between the 4th and 5th messages will be removed, but instead all changes are removed

I'm not sure whats a good solution for this, maybe add a checkpoint after each user prompt but that might break workflows that expected that all their changes are reversible, I guess the best way would be to be able to reverse each change individually and the changes are stacked on each other, so u can undo 5th change 4th change , undoing 1st change should also undo the changes on top of it

The current workaround is to remember to use "Keep all" but in practice its not always obvious that you want to keep the changes yet

demo of the current behavior

Screencast.From.2025-10-11.05-45-27.mp4

Zed Version and System Specs

Zed: v0.208.1 (Zed Preview)
OS: Linux Wayland fedora 42
Memory: 7.6 GiB
Architecture: x86_64
GPU: Intel(R) HD Graphics 4000 (IVB GT2) || Intel open-source Mesa driver || Mesa 25.1.9

Activity

  1. added
    area:aiRelated to Agent Panel, Edit Prediction, Copilot, or other AI features
    on Oct 11, 2025
  2. added theissue type on Oct 11, 2025
  3. ConradIrwin commented on Oct 16, 2025

    @ConradIrwin
    Contributor

    The way checkpointing works is definitely something we want to revisit as we work on the panel, as you say, it's not super obvious how...

  4. somtooo commented on Nov 6, 2025

    @somtooo
    Contributor

    same thing has happened to me. thanks for digging into the issue. i just started making sure i commit often but now i know what happened. bless

  5. added
    state:needs triagetriage is not complete: no `area:*` label, or no `severity:*`/`reach:*` for Bugs/Crashes
    on Nov 27, 2025
  6. added
    state:needs reproNeeds reproduction steps and/or someone to reproduce
    reach:all usersBug that happens for everyone on every platform no matter how they use Zed
    severity:S1Security holes w/o exploit, crash, install/update, sign-in, badly broken big features
    severity:S2Average run-of-the-mill bugs; a feature is broken but only partially
    and removed
    state:needs triagetriage is not complete: no `area:*` label, or no `severity:*`/`reach:*` for Bugs/Crashes
    severity:S1Security holes w/o exploit, crash, install/update, sign-in, badly broken big features
    on Dec 21, 2025
  7. fileports-code commented on Mar 28, 2026

    @fileports-code

    The way checkpoints work in RooCode and Copilot is way better than Zed; you can go back to specific points.

    At the very least, before reverting the checkpoints; Zed would show you a snippet of your prompts and the work that will be undone, like:
    "You are about to roll back changes from:

    1. Make me a great app
    2. Fix the UI add more buttons
    3. etc etc "

    or better yet; have a revertible check point after every change like Roo and Copilot

  8. github-actions commented on Jul 3, 2026

    @github-actions

    Zed development moves fast and a significant number of bugs become outdated. If you can reproduce this bug on the latest stable Zed, please let us know by leaving a comment with the Zed version, it helps us focus on the right issues. If the bug doesn't appear for you anymore, feel free to close the issue yourself; otherwise, the bot will close it in a couple of weeks. But even after it's closed by the bot, you can leave a comment with the version where the bug is reproducible and we'll reopen the issue. (This bot will only ask about this issue once) Thanks!

  9. github-actions commented on Jul 31, 2026

    @github-actions

    This issue was closed due to inactivity. If you're still experiencing this problem, please leave a comment with your Zed version so that we can reopen the issue.

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

    area:aiRelated to Agent Panel, Edit Prediction, Copilot, or other AI featuresreach:all usersBug that happens for everyone on every platform no matter how they use Zedseverity:S2Average run-of-the-mill bugs; a feature is broken but only partiallystaleLabel used by `stale` actionstate:needs reproNeeds reproduction steps and/or someone to reproduce

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions