Skip to content

chat: add a temporary managed Local harness permission - #341627

Merged
Ross Wollman (rwoll) merged 2 commits into
mainfrom
agents/add-vscode-managed-setting-disable-local
Oct 14, 2026
Merged

Ross Wollman (rwoll) merged 2 commits into
mainfrom
agents/add-vscode-managed-setting-disable-local

Conversation

@rwoll

@rwoll Ross Wollman (rwoll) commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

⚠️ This requires upstream changes in the settings engine before rollout but can be merged before then.

Adds vscode.temporaryAllowLocalHarness so administrators can prohibit Local and use the existing migration to Copilot Agent Host without configuring permissions.* or sandbox requirements. The control is temporary because Local is being retired.

{
  "vscode": {
    "temporaryAllowLocalHarness": false
  }
}

Behavior

  • Only effective boolean false hides Local, blocks further Local requests, and triggers the existing conversation migration flow. If Copilot cannot start, VS Code does not fall back to Local.
  • true, absence, or malformed values add no restriction; existing policies and rollout behavior remain.
  • This key alone never disables Claude/Codex or other governance-gated features, regardless of its value.
  • Supports native MDM, server, and file delivery, including live updates.

Precedence: explicit Local prohibition → temporary Local escape hatch → permission/sandbox requirement → rollout and preference settings, with Claude/Codex governance gating separately based on other managed settings.

vscode.temporaryAllowLocalHarness: false wins over vscode.temporaryDefaultToLocalHarness: true. Editor inline chat retains its exemption; this is not a new allowlist for remote/cloud or extension-provided harnesses.

🤖 Authored with GitHub Copilot on behalf of Ross Wollman (@rwoll).

Add vscode.temporaryRequireCopilotHarness to reuse managed-policy Local blocking and migration, taking precedence over the temporary Local escape hatch.

*🤖 Authored with GitHub Copilot on behalf of @rwoll.*

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 14, 2026 19:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The stated upstream settings-engine prerequisite and end-to-end managed delivery need confirmation before rollout.

0 open findings

What changed in this PR

Adds a temporary managed control requiring Copilot Agent Host instead of Local, reusing existing routing, request blocking, and migration behavior.

Changes:

  • Registers the requirement and gives it precedence over the Local escape hatch.
  • Extends tests for managed delivery, routing, request blocking, migration, and unavailable Copilot.
  • Documents enforcement and precedence.

No actionable findings identified.

File Description
src/​vs/​workbench/​services/​policies/​test/​browser/​accountPolicyService.test.ts Tests live updates across managed delivery channels.
src/​vs/​workbench/​contrib/​chat/​test/​common/​constants.test.ts Tests routing precedence and preserved choices.
src/​vs/​workbench/​contrib/​chat/​test/​common/​chatService/​chatService.test.ts Tests Local request blocking.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widgetHosts/​viewPane/​chatViewPane.test.ts Tests unavailable Copilot without Local fallback.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widgetHosts/​editor/​chatEditorInput.test.ts Tests policy-aware editor routing.
src/​vs/​workbench/​contrib/​chat/​test/​browser/​widget/​chatWidget.test.ts Tests automatic conversation migration.
src/​vs/​workbench/​contrib/​chat/​common/​constants.ts Honors the effective managed routing decision.
src/​vs/​platform/​policy/​test/​common/​copilotManagedSettings.test.ts Tests value validation and delivery precedence.
src/​vs/​platform/​policy/​common/​copilotManagedSettings.ts Registers and evaluates the temporary requirement.
.github/​skills/​policy-and-managed-settings/​vscode-policy.md Documents the control and escape-hatch precedence.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@rwoll Ross Wollman (rwoll) added this to the 1.143.0 milestone Oct 14, 2026
@rwoll
Ross Wollman (rwoll) marked this pull request as ready for review October 14, 2026 20:42
@rwoll

Copy link
Copy Markdown
Member Author

⚠️ Please hold review while I update this PR. vscode.temporaryRequireCopilotHarness must have no effect unless its effective value is boolean true. I am fixing the current side effect where delivering false alone can mark the user as governed and disable Claude/Codex. Other managed settings will retain their existing behavior. I will update the tests and PR description with the fix.

🤖 Authored with GitHub Copilot on behalf of Ross Wollman (@rwoll).

@rwoll
Ross Wollman (rwoll) marked this pull request as draft October 14, 2026 20:50
Rename the managed key to vscode.temporaryAllowLocalHarness. Only false blocks Local; true and absence preserve existing routing. Exclude this Local-only control from blanket governance at every value, preserving other managed restrictions and clearing stale raw governance on refresh.

*🤖 Authored with GitHub Copilot on behalf of @rwoll.*

Co-authored-by: Copilot <[email protected]>
@rwoll Ross Wollman (rwoll) changed the title chat: add a temporary managed Copilot harness requirement chat: add a temporary managed Local harness permission Oct 14, 2026
@rwoll

Copy link
Copy Markdown
Member Author

Update: the correction is pushed in 39a6448. The key is now vscode.temporaryAllowLocalHarness:

  • Only boolean false blocks Local and triggers the existing migration flow.
  • true, absence, or malformed values add no restriction.
  • This Local-only key is excluded from blanket managed-settings governance at every value, so it cannot independently disable Claude/Codex or other presence-gated features. Other managed settings retain their existing effects.

The PR title, description, precedence summary, and JSON example are updated. Validation: 798 targeted tests passed, 4 pending; client build/type-check, staged hygiene/ESLint, and policy export passed. The implementation change described in my hold-review comment is complete; new CI and normal review/sign-off remain pending.

🤖 Authored with GitHub Copilot on behalf of Ross Wollman (@rwoll).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

No actionable defects were identified, but enterprise-policy live updates need maintainer validation and upstream compatibility must be confirmed before rollout.

0 open findings

🧠 Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants