AddThisFeature

AI Message Editing

Rephrase an earlier message and get the conversation regenerated from there.

moderate AI Assistants

What it adds

In-place editing of a previously sent user message, with the original preserved and the responses below it regenerated.

What your agent is told to do

5
  1. 1

    Make editing produce a new version of the message rather than overwriting it, and keep every prior version retrievable for audit and undo.

  2. 2

    On save, invalidate only the responses descending from the edited message and regenerate from that point, leaving earlier turns and unrelated branches untouched.

  3. 3

    Restrict editing to messages the user authored. Model output is regenerated, not hand-edited, or the transcript stops being a record of what the model said.

  4. 4

    Re-resolve attachments, retrieved sources, and citations against the edited message, and refuse to carry forward a reference that no longer applies.

  5. 5

    AI Conversation Branching owns the message graph and navigation between versions. Implement an edit as a fork in that graph rather than as a destructive rewrite, and do not build a second history mechanism.

Edge cases it handles

8
  • The original text must survive the edit. Keep every version with its author and timestamp, so an edit can be undone and the record of what was actually asked is not lost.
  • Regeneration must invalidate the descendants of the edited message only. Discarding the whole conversation, or leaving stale answers below the edit, both misrepresent the thread.
  • If a downstream turn already performed a real action such as sending, purchasing, or writing to another system, editing above it cannot undo that. Warn explicitly and name what already happened.
  • Attachments and citations attached to the old text may be irrelevant to the new. Re-resolve them, and drop any whose source has since been deleted rather than rendering a broken reference.
  • A conversation someone else is viewing or has a link to must not change silently underneath them. Show that it was edited and when, and decide whether shared links pin the version they were shared at.
  • An edit that produces no meaningful change should not trigger a regeneration and a fresh charge.
  • Editing while a response below is still generating must cancel that run first rather than racing it.
  • Usage and quota accounting must treat the regeneration as a new run, and the counting rule should match the one used by Stop and Regenerate Controls.

Definition of done

9
  • Editing preserves every earlier version of the message with author and timestamp.
  • Only descendants of the edited message are invalidated and regenerated.
  • Model output cannot be edited by hand; only user-authored messages are editable.
  • Downstream tool actions that already occurred are surfaced as a warning and never silently reversed.
  • Attachments and citations are re-resolved, and stale references are dropped rather than shown broken.
  • Shared or concurrently viewed conversations show that an edit occurred rather than changing silently.
  • Edits are implemented as forks in the conversation graph, not destructive rewrites.
  • The feature matches the existing design system.
  • No existing functionality is broken.

Related features

How it works

  1. 1

    Copy the link

    Grab the Markdown instruction URL for this feature.

  2. 2

    Give it to your AI

    Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.

  3. 3

    It inspects, then implements

    Your agent reads your existing app first, then adds the feature to fit it.

Works with your stack

These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.

Need it tighter than that? Customize the feature and tell it exactly what you're running.