Skip to content

Commit c143ec6

Browse files
committed
docs: add note about handling empty override files in footgun prompting
1 parent 0a6093a commit c143ec6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/features/footgun-prompting.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ You can find the option and instructions within the Roo Code UI:
4646
- **Impact on Functionality:** Custom prompts override standard instructions, including those for tool usage and response consistency. This can cause unexpected behavior or errors if not managed carefully.
4747
- **Mode-Specific:** Each override file applies only to the mode specified in its filename (`{mode-slug}`).
4848
- **No File, No Override:** If the `.roo/system-prompt-{mode-slug}` file doesn't exist, Roo Code uses the standard system prompt generation process for that mode.
49+
- **Blank Files Ignored:** If the override file exists but is empty (blank), it will be ignored and the default system prompt will be used.
4950
- **Directory Creation:** Roo Code ensures the `.roo` directory exists before attempting to read or create the override file.
5051
5152
Use this feature cautiously. While powerful for customization, incorrect implementation can significantly degrade Roo Code's performance and reliability for the affected mode.

0 commit comments

Comments
 (0)