Skip to content

feat: message edit (undo) with confirm/cancel flow#12952

Open
invarrow wants to merge 1 commit intoanomalyco:devfrom
invarrow:feat/message-edit-undo
Open

feat: message edit (undo) with confirm/cancel flow#12952
invarrow wants to merge 1 commit intoanomalyco:devfrom
invarrow:feat/message-edit-undo

Conversation

@invarrow
Copy link
Copy Markdown
Contributor

@invarrow invarrow commented Feb 10, 2026

Summary

Implements a deferred edit flow where clicking "Undo" populates the prompt without immediately reverting history. The actual session revert (fork) occurs only when the edited message is sent, providing a safer and more intuitive user experience.

  • Added editingID to global prompt context.
  • Consolidated revert logic into the handleSubmit flow.
  • Added "Undo" button to user messages.
  • Displays an "Editing message" banner with a "Cancel" button in the prompt area.
  • Verified attachment handling (restoring text, files, agents, images).

Fixes

Fixes #9661
Fixes #6942
Fixes #8197

Before / After

image image

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

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

Projects

None yet

1 participant