Skip to content

Commit c98ae31

Browse files
author
Eric Wheeler
committed
chore: add changeset for parentRulesMaxDepth feature
Signed-off-by: Eric Wheeler <[email protected]>
1 parent 4517e07 commit c98ae31

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.changeset/nice-months-turn.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
"@roo-code/types": patch
3+
"roo-cline": patch
4+
---
5+
6+
This branch implements a new feature called "parentRulesMaxDepth" which controls how many parent directories are searched for `.roo/rules` files. The setting is accessible from the Modes view and persists across sessions.
7+
8+
1. **Added Configuration Schema**
9+
10+
- Added `parentRulesMaxDepth` to the global settings schema in `packages/types/src/global-settings.ts`
11+
12+
2. **Enhanced Rules Loading Logic**
13+
14+
- Modified `getRooDirectoriesForCwd()` in `src/services/roo-config/index.ts` to search parent directories based on the configured depth
15+
- Replaced array with Set to avoid duplicates and added proper sorting
16+
17+
3. **Added UI Components**
18+
19+
- Added a numeric input field in the Modes view to control the setting
20+
- Added localization strings for the new setting
21+
22+
4. **State Management**
23+
- Updated extension state context to store and manage the setting
24+
- Added message handlers to process setting changes
25+
26+
This feature allows for hierarchical loading of rules from parent directories, enabling more flexible configuration management across different levels (workspace, repository, organization, user-global).

0 commit comments

Comments
 (0)