claude-code - 💡(How to fix) Fix Right-click Copy copies the whole message instead of the selection; pasted text retains dark background

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…

In the Claude Code desktop app, copying text from an assistant message has two problems:

  1. Right-click "Copy" ignores the selection and copies the whole message. When I highlight only a portion of text inside a message and use the right-click context menu → Copy, the entire message is copied instead of just the highlighted selection.
  2. Copied body text carries the dark-theme background color. When pasting the copied text into another app (document, email field, etc.), the dark/black background styling comes along, so the pasted text is hard to read on a light background.

Root Cause

In the Claude Code desktop app, copying text from an assistant message has two problems:

  1. Right-click "Copy" ignores the selection and copies the whole message. When I highlight only a portion of text inside a message and use the right-click context menu → Copy, the entire message is copied instead of just the highlighted selection.
  2. Copied body text carries the dark-theme background color. When pasting the copied text into another app (document, email field, etc.), the dark/black background styling comes along, so the pasted text is hard to read on a light background.

Fix Action

Fix / Workaround

Notes / workaround

RAW_BUFFERClick to expand / collapse

Description

In the Claude Code desktop app, copying text from an assistant message has two problems:

  1. Right-click "Copy" ignores the selection and copies the whole message. When I highlight only a portion of text inside a message and use the right-click context menu → Copy, the entire message is copied instead of just the highlighted selection.
  2. Copied body text carries the dark-theme background color. When pasting the copied text into another app (document, email field, etc.), the dark/black background styling comes along, so the pasted text is hard to read on a light background.

Steps to reproduce

  1. In a conversation, select (highlight) part of the text inside an assistant message.
  2. Right-click and choose Copy.
  3. Paste into another application.

Expected

  • Only the highlighted selection is copied.
  • Pasted text is plain (or at least does not carry the dark background color).

Actual

  • The whole message is copied, not just the selection.
  • Pasted text includes the dark/black background styling.

Notes / workaround

  • Cmd + C on a highlighted selection does copy only the selection, but the right-click context-menu "Copy" still grabs the entire message.
  • The background-color issue persists with rich-text paste regardless of how the copy is triggered.

Environment

  • Claude Code desktop app
  • macOS (Darwin 25.4.0)

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