Skip to content

Commit 44de637

Browse files
Tyriarntrogh
andauthored
FAQ for cmd not in terminal (#9064)
* FAQ for cmd not in terminal * Update docs/copilot/reference/copilot-settings.md Co-authored-by: Nick Trogh <[email protected]> * Update docs/copilot/reference/copilot-settings.md Co-authored-by: Nick Trogh <[email protected]> * Move FAQ to Tools article --------- Co-authored-by: Nick Trogh <[email protected]>
1 parent 34b603b commit 44de637

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/copilot/chat/chat-tools.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,18 @@ A chat request can have a maximum of 128 tools enabled at a time. If you see an
238238

239239
* Alternatively, enable virtual tools with the `setting(github.copilot.chat.virtualTools.threshold)` setting to automatically manage large tool sets.
240240

241+
### Why isn't the agent using Command Prompt as the terminal shell?
242+
243+
The agent uses the shell you have configured as the default for the terminal, except when it's cmd. This is because [shell integration](https://code.visualstudio.com/docs/terminal/shell-integration) is not supported with Command Prompt, which means the agent has very limited visibility into what's going on inside the terminal. Instead of getting direct signals for when commands are being run or have finished running, the agent needs to rely on timeouts and watching for the terminal to idle to continue. This leads to a slow and flaky experience.
244+
245+
You can still configure the agent to use Command Prompt with the `setting(chat.tools.terminal.terminalProfile.windows)` setting, however this will result in an inferior experience compared to using PowerShell.
246+
247+
```json
248+
"chat.tools.terminal.terminalProfile.windows": {
249+
"path": "C:\\WINDOWS\\System32\\cmd.exe"
250+
}
251+
```
252+
241253
### What's the difference between tools and chat participants?
242254

243255
Chat participants are specialized assistants that enable you to ask domain-specific questions in chat. Imagine a chat participant as a domain expert to whom you hand off your chat request and it takes care of the rest.

0 commit comments

Comments
 (0)