Skip to content

TPI: Sandbox and permissions automatically move Local chats to Copilot #340779

Closed

Description

@rwoll

Refs: #340529, #340585, #340596, #340617

Complexity: 3

Authors: Ross Wollman (@rwoll)

Create Issue


Certain enterprise managed settings require Copilot Agent Host for enforcement. Existing Local, Codex, and Claude sessions must not bypass those policies.

Run the steps once for each policy in step 5, resetting the file to {} and restarting VS Code between runs.

  1. Back up any existing managed settings file, then start with no file or {}:

    OS Managed settings file
    macOS /Library/Application Support/GitHubCopilot/managed-settings.json
    Windows %ProgramFiles%\GitHubCopilot\managed-settings.json
    Linux /etc/github-copilot/managed-settings.json
  2. In your normal VS Code Insiders settings.json, ensure you have Local harness enabled:

    {
        "chat.editor.localAgent.enabled": true,
        "chat.editor.preferCopilotHarness": false,
        "chat.defaultToCopilotHarness": false
    }
  3. Create a few different Local, Claude, and Codex chats in VS Code Editor window. You can simply send "Hi, Local!", etc. for the prompts.

  4. In VS Code, ensure you have a Local chat session focused.

  5. Write one of these policies to the managed settings file for your OS. It should automatically take effect after a few seconds.

    Sandbox:

    {"sandbox":{"enabled":true,"allowBypass":false}}

    Permissions:

    {"permissions":{"disableBypassPermissionsMode":"disable"}}
  6. The open Local chat may briefly show a migration banner. Once done, the lower-left harness picker should show Copilot instead of Local. The conversation should be preserved without sending a new message automatically.

  7. Open the Sessions picker and confirm: (1) the Codex and Claude sessions are no longer present, (2) opening another Local session auto-migrates it to Copilot and places the original in Archived chats as read-only.

  8. Ensure NES and Inline Chat still work.

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

  1. added this to the 1.142.0 milestone on Oct 9, 2026
  2. changed the title [-]Sandbox and permissions automatically move Local chats to Copilot[/-] [+]TPI: Sandbox and permissions automatically move Local chats to Copilot[/+] on Oct 9, 2026
  3. Giuspepe commented on Oct 12, 2026

    @Giuspepe
    Contributor

    Tested on macOS and Windows, works well :)

  4. houghj16 commented on Oct 12, 2026

    @houghj16
    Contributor

    Tested on Windows, and it works as expected!

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