Skip to content

feat: add /undo to remove the latest exchange - #6

Merged
autoantohaki merged 1 commit into
mainfrom
feat/undo-command
Oct 21, 2026
Merged

autoantohaki merged 1 commit into
mainfrom
feat/undo-command

Conversation

@autoantohaki

Copy link
Copy Markdown
Member

Requested by mau

Before: removing the last message and its reply meant /clear (everything) or editing it.

After: /undo removes the latest user message and everything after it. It refuses while a reply streams or when there is nothing to undo.

How: ChatSession.undo() truncates from the last user message and returns its text; the command, catalog, and slash-command docs gain the entry. A session test covers repeated undo down to an empty conversation.

@autoantohaki
autoantohaki merged commit 1f930a4 into main Oct 21, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant