claude-code - 💡(How to fix) Fix Add "Copy selection" option to right-click menu on message text [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#56184Fetched 2026-05-06 06:34:57
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Fix Action

Workaround

Cmd+C still works while ignoring the menu, but the menu's presence is misleading — users naturally expect a Copy option to act on their selection.

RAW_BUFFERClick to expand / collapse

Problem

When I select a portion of text inside a Claude Code message and open the right-click context menu, the available options are:

  • Copy message
  • Copy as Markdown
  • Attach selection as context
  • Pin as chapter

There is no "Copy selection" option. "Copy message" copies the entire message, which is not what I want when I've highlighted a specific phrase.

Workaround

Cmd+C still works while ignoring the menu, but the menu's presence is misleading — users naturally expect a Copy option to act on their selection.

Request

Please add a Copy selection item to the context menu that copies only the highlighted text to the clipboard. Ideally it should appear at the top of the menu when a non-empty selection exists.

Environment

  • Platform: macOS (Darwin 24.6.0)
  • Claude Code interface

extent analysis

TL;DR

Add a "Copy selection" item to the context menu that copies only the highlighted text to the clipboard when a non-empty selection exists.

Guidance

  • Verify the current context menu implementation to identify why the "Copy selection" option is missing.
  • Check if the Cmd+C shortcut is properly handling the selection and if it can be used as a temporary workaround.
  • Investigate the menu generation logic to determine how to conditionally add the "Copy selection" item based on the presence of a non-empty text selection.
  • Consider the menu item ordering to ensure "Copy selection" appears at the top when a selection exists.

Example

No code snippet is provided as the issue does not contain sufficient technical details about the menu implementation.

Notes

The solution may require modifications to the Claude Code interface's context menu handling and clipboard interaction logic.

Recommendation

Apply workaround: Use Cmd+C to copy the selected text until the "Copy selection" menu item is implemented, as it currently ignores the menu and copies the selection correctly.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING