Skip to content

Test: Managed settings customization controls #329614

Closed

Description

@joshspicer

Refs: #327843, #327844

Complexity: 5

Authors: joshspicer

Create Issue


Test the following managed customization settings:

  • strictPluginOnlyCustomization — When true, standalone user/workspace agents, skills, instructions, hooks, and MCP collections are blocked. Eligible plugin-provided customizations remain available.
  • allowManagedHooksOnly — When true, standalone hooks are blocked. Plugin hooks run only when their plugin is explicitly enabled through managed enabledPlugins; user enablement alone is insufficient.
  • allowManagedMcpServersOnly — When true, only MCP servers matching managed allowedMcpServers are available. deniedMcpServers remains restrictive and wins over an overlapping allow.
  • extraKnownMarketplaces.<name>.autoUpdate — Controls automatic updates per marketplace. Managed true or false overrides extensions.autoUpdate; an omitted value inherits it. Equivalent GitHub shorthand and URL references receive the same policy.

Setup

  • Use a disposable profile and workspace.
  • Install the file using Test: File-based managed settings:
    • macOS: /Library/Application Support/GitHubCopilot/managed-settings.json
    • Linux: /etc/github-copilot/managed-settings.json
    • Windows: %ProgramFiles%\GitHubCopilot\managed-settings.json
  • Enable chat.useHooks.
  • Install goal from microsoft/vscode-team-kit.
  • Install awesome-copilot from github/awesome-copilot#marketplace.

Goal

Your goal is to exercise all of these managed settings. See the links above for how they should behave. Please feel free to follow your own testing path, as long as you exercise all keys,

A possible testing path

  • Create standalone workspace agent, skill, instruction, hook, and MCP entries.
  • Apply the configuration below and run Developer: Policy Diagnostics. Confirm each key has source File (managed-settings.json).
  • Confirm standalone customizations disappear while the plugin customizations remain.
  • Confirm only the managed-enabled goal plugin hook can run.
  • Confirm tpi-managed-allowed is available, tpi-user-only is blocked, and tpi-denied is blocked despite also being allowed.
  • Change the policy file while VS Code is running and confirm discovery updates without a restart.
  • For deterministic update testing, replace the marketplace repositories below with test forks containing an older installed plugin and a newer published version.
  • With extensions.autoUpdate disabled, confirm only the autoUpdate: true marketplace updates.
  • With extensions.autoUpdate enabled, confirm the autoUpdate: false marketplace does not update.
  • Remove an autoUpdate property and confirm that marketplace inherits extensions.autoUpdate.
  • Configure the same GitHub marketplace using its full URL and confirm it receives the shorthand marketplace’s policy without appearing twice.
  • Remove a marketplace from strictKnownMarketplaces and confirm automatic, direct, and forced updates from it are blocked.

Workspace Files

.vscode/mcp/json

{
  "servers": {
    "tpi-managed-allowed": {
      "type": "stdio",
      "command": "node",
      "args": ["-e", "process.stdin.resume()"]
    },
    "tpi-user-only": {
      "type": "stdio",
      "command": "node",
      "args": ["-e", "process.stdin.resume()"]
    },
    "tpi-denied": {
      "type": "stdio",
      "command": "node",
      "args": ["-e", "process.stdin.resume()"]
    }
  },
  "inputs": []
}

Example managed-settings.json (see install location above)

{
  "strictPluginOnlyCustomization": true,
  "allowManagedHooksOnly": true,
  "allowManagedMcpServersOnly": true,
  "enabledPlugins": {
    "goal@vscode-team-kit": true,
    "awesome-copilot@awesome-copilot": true
  },
  "allowedMcpServers": [
    {
      "serverName": "awesome-copilot"
    },
    {
      "serverName": "tpi-managed-allowed"
    },
    {
      "serverName": "tpi-denied"
    }
  ],
  "deniedMcpServers": [
    {
      "serverName": "tpi-denied"
    }
  ],
  "extraKnownMarketplaces": {
    "vscode-team-kit": {
      "source": {
        "source": "github",
        "repo": "microsoft/vscode-team-kit"
      },
      "autoUpdate": true
    },
    "awesome-copilot": {
      "source": {
        "source": "github",
        "repo": "github/awesome-copilot",
        "ref": "marketplace"
      },
      "autoUpdate": false
    }
  },
  "strictKnownMarketplaces": [
    {
      "source": "github",
      "repo": "microsoft/vscode-team-kit"
    },
    {
      "source": "github",
      "repo": "github/awesome-copilot",
      "ref": "marketplace"
    }
  ]
}

Activity

  1. changed the title [-]Test: Customization controls in managed_settings[/-] [+]Test: Managed settings customization controls[/+] on Aug 7, 2026
  2. added this to the 1.133.0 milestone on Aug 7, 2026
  3. joshspicer commented on Aug 10, 2026

    @joshspicer
    ContributorAuthor

    Another way to confirm policy is set is from the settings editor with @hasPolicy. This is the config above applied

    Image
  4. amunger commented on Aug 10, 2026

    @amunger
    Collaborator

    The behavior is not as expected.

    I can see the policies show up in @hasPolicy in the settings editor, but the only other difference I see from enabling a policy is that the MCP UI shows less information when the policy file exists, but it doesn't matter what the policy is.
    MCP servers all fail with "language model unavailable" with or without the policy (different issue), but the agent will try either way.
    User level hooks are enabled with and without the policy

  5. bhavyaus commented on Aug 10, 2026

    @bhavyaus
    Collaborator

    Test the following managed customization settings:

    • strictPluginOnlyCustomization — When true, standalone user/workspace agents, skills, instructions, hooks, and MCP collections are blocked. Eligible plugin-provided customizations remain available.
    • allowManagedHooksOnly — When true, standalone hooks are blocked. Plugin hooks run only when their plugin is explicitly enabled through managed enabledPlugins; user enablement alone is insufficient.
    • allowManagedMcpServersOnly — When true, only MCP servers matching managed allowedMcpServers are available. deniedMcpServers remains restrictive and wins over an overlapping allow.
    • extraKnownMarketplaces.<name>.autoUpdate — Controls automatic updates per marketplace. Managed true or false overrides extensions.autoUpdate; an omitted value inherits it. Equivalent GitHub shorthand and URL references receive the same policy.

    Tested true/false for the above policy enablements and they worked as expected. Command Developer: Policy Diagnostics does not work in Insiders but the fix is checked into main. Closing this TPI

  6. removed their assignment
    on Aug 10, 2026
  7. locked and limited conversation to collaborators on Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions