opencode
opencode copied to clipboard
Easy Message Unqueue with /unqueue
Summary
Adds /unqueue slash command to remove queued messages without affecting the current assistant response.
Problem
Oftentimes after queueing a message, I decide I want to rewrite it or ask something else altogether. In these cases, I’d like to remove all queued messages from the queue.
Solution
The /unqueue command:
- Removes queued user messages
- Deletes them from persistent storage (clean conversation history)
- Rejects in-memory callbacks (messages never execute)
- Silent operation (no UI clutter)
Demo
https://github.com/user-attachments/assets/cff67730-dc3c-490e-917f-e8079e5af323
I experimented with introducing an interactable button in the TUI. (Imagine hovering over the QUEUED button and it prompts you to UNQUEUE) But this approach keeps the implementation simple and focused