Show copy action on assistant messages#761
Show copy action on assistant messages#761Amer-alsayed wants to merge 1 commit intopingdotgg:mainfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
What Changed
Shows the existing message copy button on assistant messages when their footer is hovered or focused. This is limited to the assistant message footer in
ChatViewand reuses the existingMessageCopyButton.Why
User messages already expose a hover copy affordance, but assistant messages require manual text selection or code-block-level copy actions. This keeps the interaction consistent without changing message content, layout structure, or chat behavior.
UI Changes
Before:

After:

Validation
bun run --filter=@t3tools/web typecheckbun run --filter=@t3tools/web testScope
Note
Show copy button on assistant messages on hover
Adds a
MessageCopyButtonto assistant message rows in ChatView.tsx. The button appears in a control area that fades in on hover or focus, and is only rendered when message text is present. The timestamp moves into a flex container alongside this control area.Macroscope summarized 99a215b.