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/code-actions.md
+3-13Lines changed: 3 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,8 @@ Clicking the lightbulb, right-clicking and selecting "Roo Code", or using the ke
16
16
17
17
Roo Code provides the following Code Actions:
18
18
19
-
***Add to Context:** Quickly adds the selected code to your chat with Roo, including line numbers so Roo knows exactly where the code is from. It's listed first in the menu for easy access. (More details below).
19
+
***Add to Context:** Quickly adds the selected code to your chat with Roo, including the filename and line numbers so Roo knows exactly where the code is from. It's listed first in the menu for easy access.
20
20
***Explain Code:** Asks Roo Code to explain the selected code.
21
-
***Fix Code:** Asks Roo Code to fix problems in the selected code (available when diagnostics are present).
22
21
***Improve Code:** Asks Roo Code to suggest improvements to the selected code.
23
22
24
23
### Add to Context Deep Dive
@@ -36,8 +35,6 @@ Can you explain this function?
36
35
37
36
*(Where `@myFile.js:15:25` represents the code added via "Add to Context")*
38
37
39
-
Each of these actions can be performed "in a new task" or "in the current task."
40
-
41
38
## Using Code Actions
42
39
43
40
There are three main ways to use Roo Code's Code Actions:
@@ -62,22 +59,15 @@ There are three main ways to use Roo Code's Code Actions:
62
59
63
60
1.**Select Code:** Select the code you want to work with.
64
61
2.**Open the Command Palette:** Press `Ctrl+Shift+P` (Windows/Linux) or `Cmd+Shift+P` (macOS).
65
-
3.**Type a Command:** Type "Roo Code" to filter the commands, then choose the relevant code action (e.g., "Roo Code: Explain Code"). You can also type the start of the command, like "Roo Code: Explain", and select from the filtered list.
62
+
3.**Type a Command:** Type "Roo Code" to filter the commands, then choose the relevant code action (e.g., "Roo Code: Explain Code"). The action will apply in the most logical context (usually the current active chat task, if one exists).
66
63
4.**Review and Approve:** Roo Code will propose a solution in the chat panel. Review the proposed changes and approve or reject them.
67
64
68
-
## Code Actions and Current Task
69
-
70
-
Each code action gives you two options:
71
-
72
-
***in New Task:** Select this to begin a conversation with Roo centered around this code action.
73
-
***in Current Task:** If a conversation has already begun, this option will add the code action as an additional message.
74
-
75
65
## Customizing Code Action Prompts
76
66
77
67
You can customize the prompts used for each Code Action by modifying the "Support Prompts" in the **Prompts** tab. This allows you to fine-tune the instructions given to the AI model and tailor the responses to your specific needs.
78
68
79
69
1.**Open the Prompts Tab:** Click the <Codiconname="notebook" /> icon in the Roo Code top menu bar.
80
-
2.**Find "Support Prompts":** You will see the support prompts, including "Enhance Prompt", "Explain Code", "Fix Code", and "Improve Code".
70
+
2.**Find "Support Prompts":** You will see the support prompts, including "Enhance Prompt", "Explain Code", and "Improve Code".
81
71
3.**Edit the Prompts:** Modify the text in the text area for the prompt you want to customize. You can use placeholders like `${filePath}` and `${selectedText}` to include information about the current file and selection.
Copy file name to clipboardExpand all lines: docs/features/shell-integration.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,9 @@ Shell integration is automatically enabled in Roo Code and connects directly to
12
12
- Observe command exit codes to determine success or failure
13
13
- Track working directory changes as you navigate your project
14
14
- React intelligently to terminal output without user intervention
15
+
- Stop running commands directly from the chat interface using the stop button that appears next to the command execution message.
15
16
17
+
<imgsrc="/img/v3.15/v3.15.png"alt="Stop Command Button in Chat UI"width="600" />
16
18
When you ask Roo to perform tasks like installing dependencies, starting a development server, or analyzing build errors, shell integration works behind the scenes to make these interactions smooth and effective.
17
19
18
20
## Troubleshooting Shell Integration
@@ -25,6 +27,16 @@ Shell integration is built into Roo Code and works automatically in most cases.
25
27
4.**WSL users**: Add `. "$(code --locate-shell-integration-path bash)"` to your `~/.bashrc`
26
28
27
29
## Terminal Integration Settings
30
+
### Command Execution Fallback
31
+
32
+
Roo Code includes a fallback mechanism to ensure commands can still run even if VSCode's native shell integration fails or is unavailable.
33
+
34
+
-**How it works**: If Roo Code cannot connect to the terminal using standard shell integration, it will automatically attempt to execute the command directly using a background process.
35
+
-**Notification**: You'll see a notification in the chat if this fallback is used, indicating that the command is running without full shell integration features (like real-time output streaming or exit code detection might be limited).
36
+
-**Resolution**: The notification will include links to help you troubleshoot the underlying shell integration issue if you wish to restore full functionality. Often, following the steps in this document resolves the problem.
37
+
38
+
<imgsrc="/img/v3.15.0/v3.15.0.png"alt="Stop Command Button in Chat UI"width="600" />
39
+
28
40
29
41
Roo Code provides several settings to fine-tune shell integration. Access these in the Roo Code sidebar under Settings → Terminal.
This release introduces prompt caching for Google Vertex, improved terminal command handling, UI/UX enhancements, and several other improvements and bug fixes.
4
+
5
+
## Prompt Caching for Google Vertex
6
+
7
+
* Added prompt caching capabilities to the Google Vertex provider for potentially faster and more cost-effective responses (thanks ashktn).
8
+
9
+
## Improved Terminal Command Handling
10
+
11
+
* Implemented a [fallback mechanism](/features/shell-integration#command-execution-fallback) for executing terminal commands if VSCode terminal shell integration fails.
12
+
* Added the ability to stop commands directly from the chat UI.
Copy file name to clipboardExpand all lines: docs/update-notes/v3.15.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,26 +8,34 @@ This release introduces prompt caching for Google Vertex, improved terminal comm
8
8
9
9
## Improved Terminal Command Handling
10
10
11
-
* Implemented a fallback mechanism for executing terminal commands if VSCode terminal shell integration fails.
11
+
* Implemented a [fallback mechanism](/features/shell-integration#command-execution-fallback) for executing terminal commands if VSCode terminal shell integration fails.
12
12
* Added the ability to stop commands directly from the chat UI.
0 commit comments