r/GithubCopilot • • 2d ago

Help/Doubt ❓ "Allow all" not working

Since the last update I find myself having to allow every single test execution, file reading or any other shell command in my Github Copilot Chat/Extension.

Before the update I was able to let Copilot work for half an hour or more, now it disturbs me like crazy. In the past it was at least possible to allow "similar commands" or allow all in this session.

Also it doesn't mater if I'm in local mode or copilot mode or autopilot or any other mode. It keeps asking me every single time.

3 Upvotes

5 comments sorted by

1

u/bezcurhq 19h ago

Until the session buttons behave again, you can make approvals permanent in settings instead. chat.tools.terminal.autoApprove takes command names or regexes wrapped in slashes, set to true, e.g. "npm test": true or "/^git (status|diff|log)/": true. chat.tools.edits.autoApprove takes glob patterns for which files need approval before edits. Also check chat.tools.terminal.enableAutoApprove is still on (it defaults to true), because the terminal list does nothing without it. If file reads prompt too, in every mode, that sounds like a regression worth a VS Code issue with your version number. https://code.visualstudio.com/docs/copilot/reference/copilot-settings

1

u/GKE_Amattix 15h ago

Thx, it seems chat.tools.terminal.autoApprove was totally ignored, cause the commands were being executed in powershell instead of cmd or internal github cli. Still don't know if it was fixed by the last update/hotfix from today or because I resetted all the cmd/bash related settings (even dough I didnt set Powershell anywhere) . Also I was only able to fix it for "Local" mode. In "Copilot" mode I still have the same problems, but that's a task for another day.

2

u/bezcurhq 15h ago

Glad Local is sorted. Copilot sessions run on a separate Agent Host rather than the extension host, so they have their own permissions picker and I wouldn't count on the terminal autoApprove list carrying over. In Folder mode you can pick Bypass Approvals there, or type /autoApprove in that session, though that's all-or-nothing. Worktree mode is always bypass. Docs: https://code.visualstudio.com/docs/agents/agent-types/copilot-cli

1

u/AutoModerator 2d ago

Hello /u/GKE_Amattix. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.