You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/features/rooignore.md
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,13 +37,10 @@ These tools directly check `.rooignore` before any file operation. If a file is
37
37
*[`read_file`](/advanced-usage/available-tools/read-file): Will not read ignored files.
38
38
*[`write_to_file`](/advanced-usage/available-tools/write-to-file): Will not write to or create new ignored files.
39
39
*[`apply_diff`](/advanced-usage/available-tools/apply-diff): Will not apply diffs to ignored files.
40
+
*[`insert_content`](/advanced-usage/available-tools/insert-content): Will not write to ignored files.
41
+
*[`search_and_replace`](/advanced-usage/available-tools/search-and-replace): Will not search and replace within ignored files.
40
42
*[`list_code_definition_names`](/advanced-usage/available-tools/list-code-definition-names): Will not parse ignored files for code symbols.
41
43
42
-
### File Editing Tools (Potential Write Bypass)
43
-
44
-
The [`insert_content`](/advanced-usage/available-tools/insert-content) and [`search_and_replace`](/advanced-usage/available-tools/search-and-replace) tools use an internal component for managing changes.
45
-
**Important**: Currently, the final write operation performed by these tools might bypass `.rooignore` rules. While initial read attempts might be blocked, the save action itself does not have an explicit check.
46
-
47
44
### File Discovery and Listing
48
45
49
46
***[`list_files`](/advanced-usage/available-tools/list-files) Tool**: When Roo lists files, ignored files are typically omitted or marked with a 🔒 symbol (see "User Experience" below).
@@ -57,7 +54,6 @@ The [`insert_content`](/advanced-usage/available-tools/insert-content) and [`sea
57
54
58
55
***Workspace-Centric**: `.rooignore` rules apply **only to files and directories within the current VS Code workspace root**. Files outside this scope are not affected.
59
56
***[`execute_command`](/advanced-usage/available-tools/execute-command) Specificity**: Protection for `execute_command` is limited to a predefined list of file-reading commands. Custom scripts or uncommon utilities might not be caught.
60
-
***Write Operations via [`insert_content`](/advanced-usage/available-tools/insert-content) & [`search_and_replace`](/advanced-usage/available-tools/search-and-replace)**: As noted, these tools might be able to write to ignored files due to current limitations in their save mechanism.
61
57
***Not a Full Sandbox**: `.rooignore` is a powerful tool for controlling Roo's file access via its tools, but it does not create a system-level sandbox.
62
58
63
59
## User Experience and Notifications
@@ -66,4 +62,4 @@ The [`insert_content`](/advanced-usage/available-tools/insert-content) and [`sea
66
62
***Error Messages**: If a tool operation is blocked, Roo receives an error: `"Access to [file_path] is blocked by the .rooignore file settings. You must try to continue in the task without using this file, or ask the user to update the .rooignore file."`
67
63
***Chat Notifications**: You will typically see a notification in the Roo chat interface when an action is blocked due to `.rooignore`.
68
64
69
-
This guide helps you understand the `.rooignore` feature, its capabilities, and its current limitations, so you can effectively manage Roo's interaction with your codebase.
65
+
This guide helps you understand the `.rooignore` feature, its capabilities, and its current limitations, so you can effectively manage Roo's interaction with your codebase.
0 commit comments