session/undo and session/redo requests
#329
Replies: 1 comment
-
|
Following up on this since it's been quiet. I think undo/redo can be expressed as a thin client-side layer on top of a more general rewind primitive, rather than as its own protocol surface. Concretely, if the protocol provides This also unifies a few scattered conversations:
All three reduce to "discard messages after a chosen point, optionally with a fresh prompt at the new tail." A single I've drafted an RFD along these lines, and I left a longer comment on #239 with the proposed shape. If others here agree this consolidation makes sense, I'll roll the redo concern into the RFD's FAQ and credit this thread for the prompt. If you specifically need an agent-side undo/redo stack (e.g., for an agent that has internal state changes beyond the user-visible conversation), that would be a different proposal and worth a separate RFD. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Since the operation of undo and redo involves rewriting history by removing or appending user messages in the conversation, it's not really possible to implement it through simple commands.
A solution would be to have
session/undoandsession/redorequests that would require the client to remove / append user's message after a successful response.Beta Was this translation helpful? Give feedback.
All reactions