Skip to content

[Feature] Universal Copy Buttons on Chat Bubbles in VS Code Extension #746

Closed

Description

@akramcodez

Description

Add a quick "Copy" button to the end of both user prompt bubbles and AI response bubbles in the VS Code extension's chat panel.

Use Case

Developers frequently need to extract code snippets, terminal commands, or previous prompts from the chat. Manually highlighting text in a narrow VS Code sidebar webview is tedious and error-prone.

Proposed Solution

Inject a subtle clipboard icon at the bottom right of every message block in the messages-container. When clicked, it should copy the raw text/markdown to the clipboard and display a brief "Copied!" checkmark animation.

Alternatives Considered

  • Relying on native VS Code selection and keyboard shortcuts (Ctrl+C), but this provides poor UX in narrow sidebars.

Additional Context

  • I have searched existing issues to ensure this is not a duplicate
  • This feature aligns with the project's goals (local-first AI assistance)
  • Target Component: VS Code Extension (plugins/vscode/)

Implementation Notes (optional)

  • Folder Path: plugins/vscode/
  • UI: Add an absolutely positioned SVG icon to the message div during the DOM injection phase (likely within plugins/vscode/media/chat-panel.js).
  • Logic: Use the standard browser navigator.clipboard.writeText() API.

Contribution Guidelines

  • If you would like to work on this issue, please comment below to ask for assignment first.
  • Before opening a Pull Request, please briefly share your implementation plan in this thread so we can align on the approach!

Activity

  1. added
    enhancement
    on Aug 3, 2026
  2. arpan7sarkar commented on Aug 3, 2026

    @arpan7sarkar
    Contributor

    @akramcodez assign me this issue am adding it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions