Skip to content

feat add chat file drag and drop and cmd plus v to paste #4337

Merged
aaravgarg merged 2 commits intomainfrom
feat/desktop-chat
Jan 22, 2026
Merged

feat add chat file drag and drop and cmd plus v to paste #4337
aaravgarg merged 2 commits intomainfrom
feat/desktop-chat

Conversation

@krushnarout
Copy link
Copy Markdown
Member

Screen.Recording.2026-01-22.at.1.08.05.PM.mov

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces drag-and-drop and paste functionalities for files and images in the chat, which is a great enhancement for the desktop experience. The implementation correctly uses desktop_drop and pasteboard packages. My review focuses on improving the robustness of these new features by adding proper error handling for asynchronous operations. I've identified a couple of places where unhandled exceptions could lead to app instability or crashes, and I've provided suggestions to make the code more resilient, aligning with the guideline that try-catch blocks are necessary for operations with a non-negligible chance of failure.

Comment thread app/lib/providers/message_provider.dart Outdated
Comment thread app/lib/desktop/pages/chat/desktop_chat_page.dart
@aaravgarg aaravgarg merged commit f6ba926 into main Jan 22, 2026
1 check passed
@aaravgarg aaravgarg deleted the feat/desktop-chat branch January 22, 2026 17:30
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