Skip to content

feat(chat): copy button on assistant messages (#362) - #437

Merged
vybe merged 1 commit into
mainfrom
feature/362-chat-copy-button
Apr 21, 2026
Merged

vybe merged 1 commit into
mainfrom
feature/362-chat-copy-button

Conversation

@dolho

@dolho dolho commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds copy-to-clipboard button to every assistant message bubble in ChatBubble.vue.
  • Button sits top-right, hidden by default (opacity-0), reveals on hover/focus via Tailwind group-hover:opacity-100.
  • Icon swaps from clipboard SVG to green checkmark for 2s on successful copy; falls back to console error if clipboard API rejects.
  • Same treatment applied to the self_task bubble branch so background-task results are also copyable.
  • Covers both AgentDetail chat (via ChatPanel → ChatMessages) and PublicChat views — both already render through ChatBubble, so a single component edit is enough.

Closes #362

Test plan

🤖 Generated with Claude Code

Copy-to-clipboard button appears on hover at top-right of assistant and
self-task bubbles in ChatBubble.vue. Icon swaps to green checkmark for
2s after a successful copy. Covers AgentDetail chat (via ChatPanel ->
ChatMessages) and PublicChat views since both render through ChatBubble.

Closes #362

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@dolho
dolho requested a review from vybe April 21, 2026 10:12

@vybe vybe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validated via /validate-pr: UX polish, no security issues. ✅

@vybe
vybe merged commit 4bb0337 into main Apr 21, 2026
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.

feat(chat): add copy button to agent responses

2 participants