GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs(rfd): Session Rewind — truncate and edit history (v2) by htahaozlu · Pull Request #1321 · agentclientprotocol/agent-client-protocol

Conversation

@htahaozlu

@htahaozlu htahaozlu commented May 31, 2026

Copy link
Copy Markdown

Drafts the "Truncate/Edit support" item listed under "RFDs to be Written" in the v2 overview.

Summary

Two methods for in-place modification of a session's conversation timeline:

  • session/rewind { sessionId, toMessageId } — truncate history at a message; the next prompt continues from there.
  • session/edit_prompt { sessionId, messageId, content } — rewind to a user message, replace its content, re-run from that point.

One capability (agentCapabilities.session.rewind), one new notification (history_truncated) for the destructive event — the symmetric counterpart to the v2 prompt lifecycle's additive user_message. edit_prompt's accept/echo/state_change flow reuses the v2 prompt lifecycle wholesale.

Relation to existing work

  • Supersedes #1214, my v1-substrate draft of the same two methods. v1 had no agent-owned message identity and no non-chunk notification, so it could not cleanly express how a truncation is observed by other clients or by session/load replay. v2 settles exactly those questions, so the proposal re-bases onto v2 rather than iterating docs(rfd): Session Rewind #1214 in place.
  • Sibling to #1261 (session/inject) — inject is additive ("add this"), rewind is destructive ("undo that"). Shared substrate, non-colliding capabilities/flags, and they compose.
  • Rides the v2 prompt lifecycle: agent-owned messageId, user_message echo, state_change.
  • Consolidates discussion #239 (checkpoint/restore) and #329 (session/undo/redo).

Out of scope

Filesystem rollback (left to fs/*, session/fork, IDE history, or SCM), conversation branching, and per-edit model/MCP/tool overrides — each noted as future work in the RFD.


This PR adds the RFD file only; happy to add the docs/docs.json v2 nav entry (rfds/v2/session-rewind) on request — left out to keep the diff a single clean new file.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

morlay, joeyshi123321, tanlethanh, hussain, OrzMiku, and enduity reacted with thumbs up emoji
All reactions
  • 👍 6 reactions
@htahaozlu
docs(rfd): Session Rewind v2 — truncate and edit history
79f038b
@htahaozlu
htahaozlu requested a review from a team as a code owner May 31, 2026 08:20
This was referenced May 31, 2026
docs(rfd): steer and queue prompts sent while the Agent is working #1261
Open
docs(rfd): Session Rewind #1214
Closed
@Kanishk2207 Kanishk2207 mentioned this pull request Aug 7, 2026
feat: expose file and conversation rewind over ACP agentclientprotocol/claude-agent-acp#966
Closed
@hussain hussain mentioned this pull request Sep 25, 2026
No way to put files back to an earlier point in a session — an agent's edits can only be undone by hand solutionsunity/acp-patchbay#50
Open
@srid srid mentioned this pull request Sep 30, 2026
Chat: rewind to an earlier message juspay/olai#636
Draft
@hussain hussain mentioned this pull request Oct 11, 2026
A sent message can only be copied — no way to edit or delete it solutionsunity/acp-patchbay#91
Open

This branch has not been deployed

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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@htahaozlu
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.