-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat: implement desktop notification system for Roo Code extension #5703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
✅ No security or compliance issues detected. Reviewed everything up to c2fe775. Security Overview
Detected Code Changes
Reply to this PR with |
src/utils/desktopNotifications.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using i18n translations rather than hardcoded English strings for user‐facing notification titles and messages. For example, instead of “Roo Code - Approval Required”, use a translation key (e.g. t('notifications.approvalTitle')).
| title: "Roo Code - Approval Required", | |
| title: t('notifications.approvalTitle'), |
This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.
b1121b1 to
294b86e
Compare
- Add node-notifier dependency for cross-platform desktop notifications - Create NotificationService with support for Windows, macOS, and Linux - Add comprehensive VSCode settings for notification preferences - Integrate notifications with askApproval flow in presentAssistantMessage - Add error notifications to handleError function - Include localization support for all notification settings - Provide graceful fallback to VSCode notifications on failure Addresses #5015
caa1825 to
c2fe775
Compare
| /** | ||
| * Send an approval request notification | ||
| */ | ||
| public async sendApprovalRequest(message: string, toolName?: string): Promise<void> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notification titles such as 'Approval Required', 'Roo Code Error', 'Task Completed', etc. are hard-coded. For full i18n support, consider using translation keys instead of inline strings.
This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.
|
Automatically closed: PR created by @roomote-agent before 2025-07-16 |
|
I see this PR was automatically closed due to being created by @roomote-agent before 2025-07-16. I am now reviewing and working on completing the desktop notification system implementation. I will reopen this PR with the necessary updates and ensure all functionality is properly implemented and tested. |
✅ Desktop Notification System Implementation CompleteI have successfully completed the desktop notification system implementation for the Roo Code VSCode extension. The PR now includes a fully functional desktop notification system with comprehensive UI integration. 🔧 What Was ImplementedBackend Integration (Already Present):
UI Components & Integration (Added):
State Management & Message Handling (Added):
🎯 Key Features
📋 Files Modified
✅ Testing Status
The desktop notification system is now ready for use and provides users with configurable OS-level notifications for important Roo Code extension events. |
This PR implements a comprehensive desktop notification system for the Roo Code VSCode extension, addressing issue #5015.
🚀 Features
Core Desktop Notification Service
node-notifierfor Windows, macOS, and LinuxNotification Types
Integration Points
UI Controls
🛠️ Technical Implementation
Dependencies Added
node-notifier@^10.0.1- Cross-platform desktop notifications@types/node-notifier@^8.0.5- TypeScript definitionsFiles Modified/Created
src/utils/desktopNotifications.ts- Core notification service (new)src/package.json- Added dependenciessrc/shared/WebviewMessage.ts- Added message typesrc/shared/ExtensionMessage.ts- Added state typepackages/types/src/global-settings.ts- Added setting schemasrc/core/webview/webviewMessageHandler.ts- Added message handlersrc/core/task/Task.ts- Integrated notification callswebview-ui/src/components/settings/NotificationSettings.tsx- Added UI controlwebview-ui/src/components/settings/SettingsView.tsx- Updated settings viewwebview-ui/src/context/ExtensionStateContext.tsx- Added context supportwebview-ui/src/i18n/locales/en/settings.json- Added translation keysKey Features
🧪 Testing
📋 Usage
Users can now:
🔗 Related
Closes #5015
📝 Notes
Important
This PR adds a cross-platform desktop notification system to the Roo Code VSCode extension, supporting various notification types and user settings.
node-notifierinNotificationService.ts.Taskclass for automatic notifications.package.jsonandpackage.nls.jsonfor user control over notification types and behavior.node-notifierand@types/node-notifiertopackage.json.NotificationService.tsfor core notification logic.presentAssistantMessage.tsto send notifications for tool approvals and errors.This description was created by
for c2fe775. You can customize this summary. It will automatically update as commits are pushed.