-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat: added UI for global rule creation #7467
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
feat: added UI for global rule creation #7467
Conversation
f393f84 to
20b3f89
Compare
68ee686 to
383103b
Compare
383103b to
db4bdb1
Compare
db4bdb1 to
43f464d
Compare
|
@prakashsharma91 mind sharing a screenshot of what this looks like with the new rules section in settings? |
Screen.Recording.2025-09-17.at.15.08.45.mov |
43f464d to
7b50ed7
Compare
|
@Patrick-Erichsen I added a new
|
7b50ed7 to
52f86c0
Compare
Patrick-Erichsen
left a comment
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.
Thanks for implementing the new button! A few nitpicks/polish requests
- The border color/thickness is not the same for the other "add" buttons in settings, it's thinner/lighter
- Nitpick but I prefer just "Add rule" for the tooltip to keep things simple/consistent
- This advanced button should only be visible when the user has "Local agent" select. For hub agents the button doesn't modify anything on your local filesystem, it just opens a link to the hub
- Instead of "Globally" we should say "Global"
- There is a bug with the filepath logic, I clicked "Current workspace" and it correctly added it to the
.continuein my workspace, but then I clicked "Globally" it still added to current workspace. Eventually it sometimes does add globally but it's flaky. - I think the hover effect should be the same as the other buttons, eg a ghost button, rather than the orange fill I'm getting here
- added global mode toggle - implemented conditional styling (white when enabled, gray when disabled) feat: improve global rules UI and fix debug mode issues - added dropdown button component to switch between global and workspace rule creation. - fixed global rules creation to use nested rules/ subdir in debug mode - prevent default glob patterns for global rules by returning undefined globs - generate unique rule names for global rules - added watcher for rules in global directory
52f86c0 to
8101b08
Compare
|
Looks great, thank you again for the attention to detail here! Excited to get this one merged 🚀 |
|
🎉 This PR is included in version 1.24.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.21.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |


Description
Add a rule scope dropdown in the RulesSection that lets users choose between creating workspace rules or global rules. This sets up the base for managing rules that work across all projects, with updates in the backend and protocol to support global rule creation.
Screen recording or screenshot
Screen.Recording.2025-09-08.at.08.54.07.mov
Summary by cubic
Adds a toggle in RulesSection to choose between creating workspace rules or global rules, enabling global rule files to be created directly from the UI. Connects the UI to a new core handler to write the rule in the global directory and reload config.