Skip to content

Copy last assistant message does not respect revert operation #5707

Description

@assagman

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

  1. send message_1
  2. send message_2
  3. send message_3
  4. undo
  5. undo
  6. 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions