I'm using GitHub Copilot in VSCode through the CHAT tab, it frequently suggests running terminal commands and asks for iteration permissions. However, each time it wants to execute a command or continue working on a problem, I get confirmation dialogs requiring manual approval.
Example:
node server.js
, I see a dialog:I would like to configure GitHub Copilot to:
I understand these confirmation dialogs might be security features by design to:
However, for trusted development environments and experienced developers, having the option to enable "auto-approve" mode would significantly improve productivity and workflow efficiency.
The first one can be fixed by adding this to your settings:
"chat.tools.autoApprove": true
The second option deals with the number of requests the agent performs before continuing. The default is 25. If you change it to a higher number, it will continue for a longer period of time.
"chat.agent.maxRequests": 250
See reference below:
https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode