-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Show toast notification when skills are added or removed #4888
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
🦋 Changeset detectedLatest commit: 5b245a2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Pull request overview
This PR implements a notification system to alert users when skills are added or removed from their project. The implementation includes a generic ConfigContextManager for tracking configuration changes, integration with the existing SkillsManager, new type definitions for configuration changes, and Storybook stories for the UI component.
Key changes:
- New generic configuration change tracking system that can work with any config type (skills, workflows, commands, rules, MCP servers)
- Integration with SkillsManager to detect and notify on skill changes
- Type definitions moved to shared packages for reusability
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
packages/types/src/context-config.ts |
Defines types for configuration changes (ContextConfigType, ContextConfigChange) |
packages/types/src/index.ts |
Exports new context-config types |
src/shared/context-config.ts |
Re-exports types from @roo-code/types for backward compatibility |
src/services/config/ConfigContextManager.ts |
Implements generic configuration change tracking and notification logic |
src/services/skills/SkillsManager.ts |
Integrates ConfigContextManager to track skill changes and watch file system |
src/services/skills/SkillsManager.spec.ts |
Tests for configuration change detection logic |
apps/storybook/stories/ConfigDiscoveryToast.stories.tsx |
Storybook stories for the toast notification UI component |
53a2e83 to
a6d14ac
Compare
Introduces a ConfigChangeNotifier service that tracks configuration changes and displays VSCode notifications when skills are added or removed from global or project configurations. Includes i18n support for 25 languages and type definitions for context configuration changes.
a6d14ac to
5b245a2
Compare
Code Review SummaryStatus: No Issues Found | Recommendation: Merge OverviewThis PR adds a notification system for skill configuration changes. The implementation is clean and well-structured:
Notable implementation details:
Files Reviewed (22 files)
|
Code Review SummaryStatus: No Issues Found | Recommendation: Merge OverviewThis PR adds a well-structured notification system for skill configuration changes. The implementation:
The file watcher pattern change from Files Reviewed (24 files)
|
Detect when global or local configuration things change for skills, workflows, and rules and show a VS Code notification
At some point we want to move the notification into our own panel, but this was just the MVP to let users know when we do detect skills changes