Skip to content

Show copy action on assistant messages#761

Closed
Amer-alsayed wants to merge 1 commit intopingdotgg:mainfrom
Amer-alsayed:codex/assistant-message-copy-hover
Closed

Show copy action on assistant messages#761
Amer-alsayed wants to merge 1 commit intopingdotgg:mainfrom
Amer-alsayed:codex/assistant-message-copy-hover

Conversation

@Amer-alsayed
Copy link

@Amer-alsayed Amer-alsayed commented Mar 10, 2026

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 ChatView and reuses the existing MessageCopyButton.

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:
Before

After:
After

Validation

  • bun run --filter=@t3tools/web typecheck
  • bun run --filter=@t3tools/web test

Scope

  • Single file change
  • No new settings
  • No backend changes

Note

Show copy button on assistant messages on hover

Adds a MessageCopyButton to 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.

@coderabbitai
Copy link

coderabbitai bot commented Mar 10, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: ca304d10-3886-4d36-80fa-e3853feb4467

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added the vouch:unvouched PR author is not yet trusted in the VOUCHED list. label Mar 10, 2026
@Amer-alsayed Amer-alsayed marked this pull request as ready for review March 10, 2026 01:14
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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

Labels

vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant