Skip to content

Commit 136206c

Browse files
authored
Add policy for agent sandbox setting (#309981)
1 parent 73bf4de commit 136206c

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

build/lib/policies/policyData.jsonc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,25 @@
282282
"default": true,
283283
"included": true
284284
},
285+
{
286+
"key": "chat.agent.sandbox.enabled",
287+
"name": "ChatAgentSandboxEnabled",
288+
"category": "IntegratedTerminal",
289+
"minimumVersion": "1.116",
290+
"localization": {
291+
"description": {
292+
"key": "agentSandbox.enabledSetting",
293+
"value": "Controls whether agent mode uses sandboxing to restrict what tools can do. When enabled, tools like the terminal are run in a sandboxed environment to limit access to the system."
294+
}
295+
},
296+
"type": "string",
297+
"default": "off",
298+
"enum": [
299+
"off",
300+
"on"
301+
],
302+
"included": true
303+
},
285304
{
286305
"key": "update.mode",
287306
"name": "UpdateMode",

src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,17 @@ export const terminalChatAgentToolsConfiguration: IStringDictionary<IConfigurati
537537
restricted: true,
538538
experiment: {
539539
mode: 'auto'
540+
},
541+
policy: {
542+
name: 'ChatAgentSandboxEnabled',
543+
category: PolicyCategory.IntegratedTerminal,
544+
minimumVersion: '1.116',
545+
localization: {
546+
description: {
547+
key: 'agentSandbox.enabledSetting',
548+
value: localize('agentSandbox.enabledSetting', "Controls whether agent mode uses sandboxing to restrict what tools can do. When enabled, tools like the terminal are run in a sandboxed environment to limit access to the system."),
549+
}
550+
}
540551
}
541552
},
542553
[TerminalChatAgentToolsSettingId.AgentSandboxLinuxFileSystem]: {

0 commit comments

Comments
 (0)