Skip to content

feat/client/undo#460

Closed
phanen wants to merge 1 commit into
sudo-tee:mainfrom
phanen:feat/client/undo
Closed

feat/client/undo#460
phanen wants to merge 1 commit into
sudo-tee:mainfrom
phanen:feat/client/undo

Conversation

@phanen

@phanen phanen commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Attempt to make it possible /undo queued message without abort running session.
(which is not allowed in opencode tui)

This pr is just to show a rough idea and this is possible if we do in client part.

@phanen phanen force-pushed the feat/client/undo branch from fdf0fda to 433c8c4 Compare July 11, 2026 04:03
@phanen

phanen commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

The working principle is that the client maintains a separate queue of unsent messages, and only sends messages when the server can process them immediately. This way, the client '/undo' can avoid interrupting server conversations.

I'm just testing the idea, and personally, I don't think it's worth merging, because it's not a very necessary use case and it harms persistence and multi-client synchronization.

I'm just very sorry about OpenCode lacks such a basic feature

@phanen phanen closed this Jul 11, 2026
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