Description
"Copy last assistant message" does not respect revert operation.
Reverted messages are preserved for "redo" operation, but when users want to copy the last assistant message after reverting some messages, it copies the first reverted message (the last message in the conversation history if it wouldn't reverted).
OpenCode version
1.0.164
Steps to reproduce
- send message_1
- send message_2
- send message_3
- undo
- undo
- copy last message
Step 6 copies message_3 but I think the expected behavior is copying message_1 because all the messages after message_1 were reverted.
Screenshot and/or share link
No response
Operating System
macOS Tahoe 26.2 arm64
Terminal
Ghostty
Description
"Copy last assistant message" does not respect revert operation.
Reverted messages are preserved for "redo" operation, but when users want to copy the last assistant message after reverting some messages, it copies the first reverted message (the last message in the conversation history if it wouldn't reverted).
OpenCode version
1.0.164
Steps to reproduce
Step 6 copies message_3 but I think the expected behavior is copying message_1 because all the messages after message_1 were reverted.
Screenshot and/or share link
No response
Operating System
macOS Tahoe 26.2 arm64
Terminal
Ghostty