feat(chat): edit a previous user message and continue from there - #476
Open
Adam-Dalloul wants to merge 2 commits into
Open
feat(chat): edit a previous user message and continue from there#476Adam-Dalloul wants to merge 2 commits into
Adam-Dalloul wants to merge 2 commits into
Conversation
Adam-Dalloul
force-pushed
the
feat/edit-user-message
branch
from
August 16, 2026 17:07
4f5de3b to
eb3fc32
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hover a sent user message and click Edit. The composer restores that prompt (text, references, images). Send replaces it in the transcript and continues from there, the same gesture native CLIs have.
Why this shape
ACP still has no
message/edit, andsession/forkcannot yet fork from a midpoint (the RFD reservesmessageIdfor that). Rewriting a CLI session file would be unofficial, so this PR does not touch agent stores.What we can do for every agent on one path:
session/prompton the same session.Claude, Codex, Grok, and custom ACP agents all already speak that prompt path. The discarded turns remain in the agent's own history (ACP cannot rewind them). The replacement is the latest user instruction, which is how a native "I meant this instead" already works.
This is conversation edit, not
/rewind/ file restore. That remains #185.UI
session/cancel.Tests
src/lib/edit-user-message.test.ts(hide set, restore, editability)conversation_edit_serviceunit tests (filter + JSON parse)tsc --noEmitclean