[PR #902] [MERGED] Feature: add copy button to messages in web interface #9740

Closed
opened 2026-02-16 18:14:05 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/902
Author: @jhrudden
Created: 7/11/2025
Status: Merged
Merged: 7/15/2025
Merged by: @jayair

Base: devHead: feat/chat-copy-button


📝 Commits (2)

  • 11030eb feat: add copy button to text and markdown blocks
  • 841d774 Merge branch 'dev' into feat/chat-copy-button

📊 Changes

5 files changed (+89 additions, -0 deletions)

View changed files

📝 packages/web/src/components/share/content-markdown.tsx (+3 -0)
📝 packages/web/src/components/share/content-text.module.css (+1 -0)
📝 packages/web/src/components/share/content-text.tsx (+3 -0)
packages/web/src/components/share/copy-button.module.css (+47 -0)
packages/web/src/components/share/copy-button.tsx (+35 -0)

📄 Description

PR for #850

Adds hover copy button to preserve markdown formatting when copying message content.

Changes:

  • Copy button appears on hover for text/markdown messages
  • Preserves original markdown formatting (fixes manual Ctrl+C losing formatting)

How it looks on message hover

Screenshot 2025-07-11 at 7 24 45 PM

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/902 **Author:** [@jhrudden](https://github.com/jhrudden) **Created:** 7/11/2025 **Status:** ✅ Merged **Merged:** 7/15/2025 **Merged by:** [@jayair](https://github.com/jayair) **Base:** `dev` ← **Head:** `feat/chat-copy-button` --- ### 📝 Commits (2) - [`11030eb`](https://github.com/anomalyco/opencode/commit/11030eb396e815dc6c59d4ab24c00e85b7a78a7b) feat: add copy button to text and markdown blocks - [`841d774`](https://github.com/anomalyco/opencode/commit/841d7743b016f3d219fc2c7794f67d9b968a3792) Merge branch 'dev' into feat/chat-copy-button ### 📊 Changes **5 files changed** (+89 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/web/src/components/share/content-markdown.tsx` (+3 -0) 📝 `packages/web/src/components/share/content-text.module.css` (+1 -0) 📝 `packages/web/src/components/share/content-text.tsx` (+3 -0) ➕ `packages/web/src/components/share/copy-button.module.css` (+47 -0) ➕ `packages/web/src/components/share/copy-button.tsx` (+35 -0) </details> ### 📄 Description PR for #850 Adds hover copy button to preserve markdown formatting when copying message content. **Changes:** - Copy button appears on hover for text/markdown messages - Preserves original markdown formatting (fixes manual Ctrl+C losing formatting) ## How it looks on message hover <img width="1332" height="892" alt="Screenshot 2025-07-11 at 7 24 45 PM" src="https://github.com/user-attachments/assets/acb300c8-7bf5-47ff-a834-69411e91d395" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:05 -05:00
yindo closed this issue 2026-02-16 18:14:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9740