Repository navigation
Description
Refs: #340617
Complexity: 2
Authors: Ross Wollman (@rwoll)
Enterprise managed settings control which Copilot permission modes are available and which mode is selected by default.
-
Back up any existing managed settings file, then start with no file or
{}:OS Managed settings file macOS /Library/Application Support/GitHubCopilot/managed-settings.jsonWindows %ProgramFiles%\GitHubCopilot\managed-settings.jsonLinux /etc/github-copilot/managed-settings.json -
Test these two cases. For each row, write the JSON to the managed settings file, restart VS Code Insiders, and start a new Copilot chat in the Editor window. Use a fresh temporary profile for each row so saved permission choices do not override the initial mode. Test without other managed policies.
File contents Selectable modes Initial mode {"permissions":{"disableBypassPermissionsMode":"disable"}}Manual, Assisted Manual {"permissions":{"defaultMode":"assisted"}}Manual, Assisted, Allow All Assisted -
Open the permission picker and confirm the available modes and initial selection match the row.
-
Confirm blocked modes cannot be selected and allowed modes can. Setting
defaultModeshould not prevent switching to another allowed mode. -
Replace the file with
{}and restart VS Code. Start a new Copilot chat and confirm all three modes are available again.
Additional cases to consider if you have time
Use the same steps with these policies:
| File contents | Selectable modes | Initial mode |
|---|---|---|
{} |
Manual, Assisted, Allow All | Manual |
{"permissions":{"disableAssistedPermissionsMode":true}} |
Manual, Allow All | Manual |
{"permissions":{"disableBypassPermissionsMode":"disable","disableAssistedPermissionsMode":true}} |
Manual | Manual |
{"permissions":{"defaultMode":"assisted","disableAssistedPermissionsMode":true}} |
Manual, Allow All | Manual |
Screenshot placeholder: With both modes disabled, only Manual is available.
After testing, restore the original managed settings file, or remove it if you created it for this test, and restart VS Code.
🤖 Authored with GitHub Copilot on behalf of Ross Wollman (@rwoll).
Activity
[-]Copilot permission modes follow managed settings[/-][+]TPI: Copilot permission modes follow managed settings[/+]