Skip to content

Commit a6da7cb

Browse files
docs: update auto-approving actions documentation (#267)
1 parent d8132e4 commit a6da7cb

File tree

1 file changed

+35
-10
lines changed

1 file changed

+35
-10
lines changed

docs/features/auto-approving-actions.mdx

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The toolbar includes an input field to set the maximum number of API requests Ro
6363
- **Purpose**: Prevents runaway API usage and unexpected costs
6464
- **Default**: No limit (empty field)
6565
- **Recommended**: Set a reasonable limit based on your task complexity (e.g., 50-100 for most tasks)
66-
- **How it works**: Once the limit is reached, Roo will pause and ask for permission to continue
66+
- **How it works**: Once the limit is exceeded, Roo will pause and show a dialog allowing you to reset the counter and continue
6767

6868
This safety feature is particularly useful when:
6969
- Working with expensive API models
@@ -99,6 +99,7 @@ The leftmost checkbox works as a master toggle:
9999
- **Checked**: Activates all configured auto-approve permissions
100100
- **Unchecked**: Temporarily disables all auto-approvals without changing individual settings
101101
- **Important**: Individual permission settings are preserved when toggling
102+
- **Note**: The master toggle is temporarily disabled while the auto-approve menu is expanded
102103

103104
This means you can:
104105
1. Configure your preferred permissions once
@@ -162,7 +163,7 @@ By default, Roo can only read files within your current workspace directory. The
162163

163164
**Description:** "Automatically create and edit files without requiring approval"
164165

165-
**Delay slider:** "Delay after writes to allow diagnostics to detect potential problems" (Default: 0ms)
166+
**Delay slider:** "Delay after writes to allow diagnostics to detect potential problems" (Default: 1000ms / 1 second)
166167

167168
**Additional options:**
168169
- **Include files outside workspace:** Allow Roo to modify files outside the current workspace directory
@@ -172,8 +173,8 @@ By default, Roo can only read files within your current workspace directory. The
172173

173174
This setting allows Roo to modify your files without confirmation. The delay timer is crucial:
174175
- Higher values (2000ms+): Recommended for complex projects where diagnostics take longer
175-
- Default (0ms): No delay - use when speed is critical
176-
- 1000ms: Suitable for most projects with active diagnostics
176+
- Default (1000ms): Suitable for most projects with active diagnostics
177+
- 0ms: No delay - use when speed is critical
177178
- Lower values: Use only when in a controlled environment
178179

179180
#### Security Boundaries
@@ -182,7 +183,12 @@ The write operations setting includes two important security controls:
182183

183184
1. **Workspace Boundary Protection**: By default, Roo can only modify files within your current workspace. Enable "Include files outside workspace" with extreme caution.
184185

185-
2. **Protected Files**: Files in .rooignore and the .roo/ directory are protected by default. The "Include protected files" option bypasses this protection - use only when necessary.
186+
2. **Protected Files**: Roo has built-in protection for sensitive configuration files to prevent accidental modifications. This includes:
187+
- Files in the `.roo/` directory
188+
- Files listed in `.rooignore`
189+
- Roo's own configuration files (package.json, tsconfig.json, etc. when they contain Roo-specific settings)
190+
191+
The "Include protected files" option bypasses this protection - use only when you specifically need to modify these protected files.
186192

187193
#### Write Delay & Problems Pane Integration
188194

@@ -233,13 +239,25 @@ Consider the security implications of allowing automated browser access.
233239

234240
**Description:** "Automatically retry failed API requests when server returns an error response"
235241

236-
**Delay slider:** "Delay before retrying the request" (Default: 5s)
242+
**Delay slider:** "Delay before retrying the request" (Default: 10 seconds)
237243

238244
**Risk level:** Low
239245

240-
This setting automatically retries API calls when they fail. The delay controls how long Roo waits before trying again:
241-
- Longer delays are gentler on API rate limits
242-
- Shorter delays give faster recovery from transient errors
246+
This setting automatically retries API calls when they fail. The retry mechanism uses exponential backoff:
247+
- **Initial delay**: Set by the slider (default: 10 seconds)
248+
- **Backoff formula**: `min(baseDelay * 2^retryAttempt, 600)`
249+
- **Maximum delay**: 600 seconds (10 minutes)
250+
251+
Example retry sequence with 10s base delay:
252+
- 1st retry: 10 seconds
253+
- 2nd retry: 20 seconds
254+
- 3rd retry: 40 seconds
255+
- 4th retry: 80 seconds
256+
- 5th retry: 160 seconds
257+
- 6th retry: 320 seconds
258+
- 7th+ retry: 600 seconds (capped)
259+
260+
This exponential backoff helps prevent overwhelming APIs while still recovering from transient errors.
243261
:::
244262

245263
### MCP Tools
@@ -259,6 +277,8 @@ This setting requires a two-step permission process for security:
259277

260278
**Important:** Both permissions must be active for a tool to auto-approve. This dual-permission system ensures you maintain granular control over which MCP tools can execute without confirmation.
261279

280+
**Permission Storage:** Your MCP tool permissions are saved and will be remembered next time you use Roo Code.
281+
262282
Example workflow:
263283
- Enable "Always approve MCP tools" in settings
264284
- Navigate to MCP Servers view
@@ -342,7 +362,12 @@ This setting allows terminal command execution with controls. While risky, the w
342362

343363
**Visual countdown:** When enabled, a countdown timer appears on the first suggestion button, showing the remaining time before auto-selection. The timer is displayed as a circular progress indicator that depletes as time passes.
344364

345-
**Timeout slider:** Use the slider to set the wait time from 1 to 300 seconds (Default: 60s).
365+
**Timeout slider:** Use the slider to set the wait time from 1 to 300 seconds (Default: 60 seconds)
366+
367+
**How it works:**
368+
- The countdown starts at your configured time (default: 60 seconds)
369+
- When the timer reaches zero, the first suggestion is automatically selected
370+
- You can pause the countdown by clicking on the timer
346371

347372
**Override options:** You can cancel the auto-selection at any time by:
348373
- Clicking a different suggestion

0 commit comments

Comments
 (0)