microsoft / microsoft/vscode

permissions.disableBypassPermissionsMode "allow-auto-only" incorrectly enables "Allow all" in Local and Copilot harnesses in VSCode

Open
#335,928 2 comments 0 reactions 1 assignee Claimed by @TylerLeonhardt View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

According to the documentation on restricting [allow all options ](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference#restricting-the---allow-all-options), administrators should be able to set `disableBypassPermissionsMode` to `allow-auto-only` to enable "AI Assisted permissions" mode without enabling "yolo mode" features.

This works perfectly as expected in GHC CLI and GHC App. It is broken in VSCode in two ways:

1. When using the "local" harness, it incorrectly enables "Allow All"
2. When using "copilot" harness, it incorrectly allows "Allow all" to be selected, but copilot will return an error when it attempts to run a command. This is mostly a visual defect but should also be fixed.

- Copilot Chat Extension Version:
- VS Code Version: v1.135.0+
- OS Version: MacOS, Windows, Ubuntu
- Feature (e.g. agent/edit/ask mode): Agent mode
- Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): Any
- Logs:

Steps to Reproduce:

1. Apply `{ "permissions": { "disableBypassPermissionsMode": "allow-auto-only" } }` in `managed-settings.json`
2. Restart VSCode
3. Switch to "Allow All" while "local" is selected

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.