Skip to content

Commit d66293c

Browse files
lecoursenCopilot
andauthored
Correct disableBypassPermissionsMode docs to reflect actual enforcement (#61925)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5a7bfc4 commit d66293c

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

content/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/disable-automatic-commands.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Disabling automatic command approval in Copilot clients
33
shortTitle: Disable automatic commands
44
allowTitleToDifferFromFilename: true
5-
intro: 'Disable yolo mode to stop agents from running commands without approval.'
5+
intro: 'Disable YOLO mode to stop agents from running commands without approval.'
66
permissions: Enterprise owners
77
versions:
88
feature: copilot
@@ -14,15 +14,18 @@ category:
1414

1515
> [!NOTE] This feature is in {% data variables.release-phases.public_preview %} and subject to change.
1616
17-
You can prevent users from using modes that enable automatic approval of agent commands in {% data variables.copilot.copilot_cli_short %} and {% data variables.product.prodname_vscode_shortname %}. The `disableBypassPermissionsMode` setting is defined in your enterprise's `{% data variables.copilot.managed_setting_file %}` file and applies to users on your enterprise's {% data variables.product.prodname_copilot_short %} plan.
17+
You can prevent users from enabling bypass mode (also known as "YOLO mode") in {% data variables.copilot.copilot_cli_short %} and {% data variables.product.prodname_vscode_shortname %}. Bypass mode lets an agent run commands, access files, and fetch URLs without asking for approval. By disabling it for your enterprise, you ensure that a person reviews each of these actions.
1818

19-
This setting blocks users from using:
19+
## What disabling bypass mode prevents
2020

21-
* The `--yolo` or `--allow-all` flag
22-
* The `/yolo` or `/allow-all` command
23-
* All runtime paths that enable combined bypass mode
21+
The `disableBypassPermissionsMode` setting is defined in your enterprise's `{% data variables.copilot.managed_setting_file %}` file and applies to users on your enterprise's {% data variables.product.prodname_copilot_short %} plan.
2422

25-
This setting does **not** block individual flags such as `--allow-all-tools` or `--allow-all-paths`.
23+
When you set `disableBypassPermissionsMode` to `"disable"`, users cannot turn on YOLO mode in either client:
24+
25+
* In {% data variables.copilot.copilot_cli_short %}, the `--yolo`, `--allow-all`, `--allow-all-tools`, `--allow-all-paths`, and `--allow-all-urls` command-line options and the `/yolo` and `/allow-all` slash commands are blocked.
26+
* In {% data variables.product.prodname_vscode_shortname %}, the global auto-approve setting (`chat.tools.global.autoApprove`), also known as "YOLO mode," is turned off and cannot be re-enabled.
27+
28+
## Disabling bypass mode for your enterprise
2629

2730
{% data reusables.copilot.create-managed-settings %}
2831
1. Add the following property.

0 commit comments

Comments
 (0)