[FEATURE]: Add "Copy message" option to right-click context menu for user messages #2885

Closed
opened 2026-02-16 17:37:41 -05:00 by yindo · 6 comments
Owner

Originally created by @seatedro on GitHub (Nov 15, 2025).

Originally assigned to: @rekram1-node on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Currently, when right-clicking on a user message in the TUI, only "Revert" and "Fork" options are available in the context menu. There's no quick way to copy the text content of a user message to the clipboard. This is mainly an issue when my prompts are very big and I want to just copy one of them and start a new thread.

Proposed Behavior

The right-click context menu on user messages can include a "Copy message" option alongside the existing "Revert" and "Fork" options, allowing users to quickly copy message text to their clipboard.

Image
Originally created by @seatedro on GitHub (Nov 15, 2025). Originally assigned to: @rekram1-node on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Currently, when right-clicking on a user message in the TUI, only "Revert" and "Fork" options are available in the context menu. There's no quick way to copy the text content of a user message to the clipboard. This is mainly an issue when my prompts are very big and I want to just copy one of them and start a new thread. ## Proposed Behavior The right-click context menu on user messages can include a "Copy message" option alongside the existing "Revert" and "Fork" options, allowing users to quickly copy message text to their clipboard. <img width="1062" height="457" alt="Image" src="https://github.com/user-attachments/assets/39235250-4ceb-4bbd-a020-1bd00783e4e1" />
yindo added the discussion label 2026-02-16 17:37:41 -05:00
yindo closed this issue 2026-02-16 17:37:41 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 15, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3268: Requests allowing copy of input prompts (very similar core functionality)
  • #2114: Broader issue about inability to select or copy text from messages
  • #4283: Related bug about copy to clipboard functionality not working

Feel free to ignore if none of these address your specific case of wanting a right-click context menu option.

@github-actions[bot] commented on GitHub (Nov 15, 2025): This issue might be a duplicate of existing issues. Please check: - #3268: Requests allowing copy of input prompts (very similar core functionality) - #2114: Broader issue about inability to select or copy text from messages - #4283: Related bug about copy to clipboard functionality not working Feel free to ignore if none of these address your specific case of wanting a right-click context menu option.
Author
Owner

@rekram1-node commented on GitHub (Nov 16, 2025):

I think this makes sense, you can ofc select with your mouse but this can be easier.

@rekram1-node commented on GitHub (Nov 16, 2025): I think this makes sense, you can ofc select with your mouse but this can be easier.
Author
Owner

@rekram1-node commented on GitHub (Nov 16, 2025):

/oc read packages/opencode/src/cli/cmd/tui, locate where the dialog is when you click a user message, also look for how we handle copying to clipboards currently. Add a new menu item called Copy with description "copy message text to clipboard".

Make sure to hook up the clipboard w/ it too

@rekram1-node commented on GitHub (Nov 16, 2025): /oc read packages/opencode/src/cli/cmd/tui, locate where the dialog is when you click a user message, also look for how we handle copying to clipboards currently. Add a new menu item called `Copy` with description "copy message text to clipboard". Make sure to hook up the clipboard w/ it too
Author
Owner

@opencode-agent[bot] commented on GitHub (Nov 16, 2025):

Created PR #4389

New%20session%20-%202025-11-16T21%3A15%3A17.190Z
opencode session  |  github run

@opencode-agent[bot] commented on GitHub (Nov 16, 2025): Created PR #4389 <a href="https://opencode.ai/s/gM5SjaTY"><img width="200" alt="New%20session%20-%202025-11-16T21%3A15%3A17.190Z" src="https://social-cards.sst.dev/opencode-share/TmV3IHNlc3Npb24gLSAyMDI1LTExLTE2VDIxOjE1OjE3LjE5MFo=.png?model=opencode/glm-4.6&version=1.0.68&id=gM5SjaTY" /></a> [opencode session](https://opencode.ai/s/gM5SjaTY)&nbsp;&nbsp;|&nbsp;&nbsp;[github run](/sst/opencode/actions/runs/19412159484)
Author
Owner

@rekram1-node commented on GitHub (Nov 16, 2025):

ez

@rekram1-node commented on GitHub (Nov 16, 2025): ez
Author
Owner

@seatedro commented on GitHub (Nov 16, 2025):

fire

@seatedro commented on GitHub (Nov 16, 2025): fire
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2885