Skip to content

feat(chat): Enable image copy for MCP and attachments - #500

Merged
wsxiaoys merged 2 commits into
mainfrom
copy-image-for-mcp-and-attachment
Oct 5, 2025
Merged

feat(chat): Enable image copy for MCP and attachments#500
wsxiaoys merged 2 commits into
mainfrom
copy-image-for-mcp-and-attachment

Conversation

@liangfung

@liangfung liangfung commented Oct 5, 2025

Copy link
Copy Markdown
Member

Summary

This PR introduces the ability for users to copy images from MCP tool calls and message attachments.

Screen recording

https://jam.dev/c/9e69124a-ef79-4410-a6c7-b51142352c85

Key changes:

  • A new CopyableImage component has been created, which wraps images in a context menu.
  • Users can now right-click on images in the chat to copy them to the clipboard or open them in a new editor tab.
  • This functionality is implemented for images in both MCP tool call results and message attachments.
  • A generic ContextMenu component has been added to the UI library.

This improves user experience by making it easier to work with images generated or shared within the chat.

🤖 Generated with Pochi

Co-Authored-By: Pochi noreply@getpochi.com

@wsxiaoys
wsxiaoys added this pull request to the merge queue Oct 5, 2025
Merged via the queue into main with commit d256de2 Oct 5, 2025
3 checks passed
@wsxiaoys
wsxiaoys deleted the copy-image-for-mcp-and-attachment branch October 5, 2025 19:20
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