mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-25 15:35:43 +01:00
Add Codex3PIntegration policy for chat.agentHost.codexAgent.enabled (#321476)
Adds an enterprise policy to allow admins to control the Codex agent provider registration, mirroring the existing Claude3PIntegration policy. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -128,6 +128,21 @@
|
||||
"default": "*",
|
||||
"included": true
|
||||
},
|
||||
{
|
||||
"key": "chat.agentHost.codexAgent.enabled",
|
||||
"name": "Codex3PIntegration",
|
||||
"category": "InteractiveSession",
|
||||
"minimumVersion": "1.126",
|
||||
"localization": {
|
||||
"description": {
|
||||
"key": "chat.agentHost.codexAgent.enabled.policy",
|
||||
"value": "Enable Codex Agent sessions in VS Code. Start and resume agentic coding sessions powered by OpenAI Codex SDK directly in the editor. Uses your existing Copilot subscription."
|
||||
}
|
||||
},
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"included": true
|
||||
},
|
||||
{
|
||||
"key": "chat.tools.global.autoApprove",
|
||||
"name": "ChatToolsAutoApprove",
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as nls from '../../../nls.js';
|
||||
import { PolicyCategory } from '../../../base/common/policy.js';
|
||||
import { Extensions as ConfigurationExtensions, IConfigurationRegistry } from '../../configuration/common/configurationRegistry.js';
|
||||
import product from '../../product/common/product.js';
|
||||
import { Registry } from '../../registry/common/platform.js';
|
||||
@@ -54,6 +55,17 @@ configurationRegistry.registerConfiguration({
|
||||
description: nls.localize('chat.agentHost.codexAgent.enabled', "When enabled, the agent host registers the Codex provider (subject to the Codex SDK being reachable). Requires `#chat.agentHost.enabled#`. The agent host process must be restarted for changes to take effect."),
|
||||
default: false,
|
||||
tags: ['experimental', 'advanced'],
|
||||
policy: {
|
||||
name: 'Codex3PIntegration',
|
||||
category: PolicyCategory.InteractiveSession,
|
||||
minimumVersion: '1.126',
|
||||
localization: {
|
||||
description: {
|
||||
key: 'chat.agentHost.codexAgent.enabled.policy',
|
||||
value: nls.localize('chat.agentHost.codexAgent.enabled.policy', "Enable Codex Agent sessions in VS Code. Start and resume agentic coding sessions powered by OpenAI Codex SDK directly in the editor. Uses your existing Copilot subscription."),
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
[AgentHostCodexAgentSdkRootSettingId]: {
|
||||
type: 'string',
|
||||
|
||||
Reference in New Issue
Block a user