Support /undo
Short description
Add /undo command support similar to OpenCode
What problem does this solve?
Hi 👋
Would it be possible to correctly add /undo command with similar behaviour as OpenCode has it?
It will help with LLM chat progress to undo what was prompted by mistake.
It should also undo results generated by LLM for the accidental prompt.
Also it'd be nice to have an ability to redo things back including results from undone command.
Proposed solution
/undo expected to also vanish results from previous command and it should not pollute context.
It's also expected to have a queue of undone commands so that they can be redone afterwards if needed.
/redo should do the opposite.
Please see how OpenCode /undo command works. It'd be an amazing feature to have which correctly works with magic context compactions etc.
Alternatives considered
No response
Area
Pi plugin
Additional context
/undo removes generated results for last prompt and adds it to undone queue. Could be executed multiple times.
/redo restores removed generated results from undone queue. Could be executed multiple times depending on undone queue size.
with Anthropic's link https://www.anthropic.com/research/what-is-an-agent,got Hyperlink beckons— Four-zero-four echoes back: Nothing waits below.
and there is same named document below https://www.ibm.com/think/topics/ai-agents
Thanks for catching this and reporting it so clearly.😊
You’re right, the Anthropic link now returns a 404 page. I’ll update the reference to a working source. The IBM article you shared looks like a helpful alternative, so I’ll consider using that.
Thanks again for helping improve the project!