8000 feat(chat): add copy button to chat response messages by Jignesh1236 · Pull Request #542 · google/adk-web · GitHub
[go: up one dir, main page]

Skip to content

feat(chat): add copy button to chat response messages - #542

Open
Jignesh1236 wants to merge 1 commit into
google:mainfrom
Jignesh1236:main
Open

Jignesh1236 wants to merge 1 commit into
google:mainfrom
Jignesh1236:main

Conversation

@Jignesh1236
@Jignesh1236 Jignesh1236 commented Oct 4, 2026 •
Copy link
Copy Markdown

Adds a hover-reveal copy button on message bubbles so a long response can be copied in one click (#50). It sits outside the bubble's top-right corner (left for user messages), flips to a check for two seconds after copying, and stays in flow on touch devices and narrow screens where there is no hover. Hidden for messages without text and while a message is edited.

The copied state is a signal because the app runs without zone.js, so a plain field plus setTimeout never re-renders the icon.

image image

If anything needs to be changed or improved, I'm happy to make the necessary updates.

Adds a hover-reveal copy button on message bubbles so a long response can
be copied in one click (google#50). It sits outside the bubble's top-right corner
(left for user messages), flips to a check for two seconds after copying,
and stays in flow on touch devices and narrow screens where there is no
hover. Hidden for messages without text and while a message is edited.

The copied state is a signal because the app runs without zone.js, so a
plain field plus setTimeout never re-renders the icon.
@google-cla
google-cla Bot commented Oct 4, 2026
Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@wyf7107
wyf7107 commented Oct 8, 2026
Copy link
Copy Markdown
Collaborator

Looks good, I will get this in thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0