Repository navigation
chat: add a temporary managed Local harness permission - #341627
Conversation
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]>
There was a problem hiding this comment.
🔵 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.
|
🤖 Authored with GitHub Copilot on behalf of Ross Wollman (@rwoll). |
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]>
|
Update: the correction is pushed in 39a6448. The key is now
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). |
Adds
vscode.temporaryAllowLocalHarnessso administrators can prohibit Local and use the existing migration to Copilot Agent Host without configuringpermissions.*or sandbox requirements. The control is temporary because Local is being retired.{ "vscode": { "temporaryAllowLocalHarness": false } }Behavior
falsehides 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.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: falsewins overvscode.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).