Skip to content

Commit 560a9db

Browse files
authored
add enumDescriptions to ChatAgentSandboxEnabled (#310026)
1 parent 136206c commit 560a9db

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

build/lib/policies/policyData.jsonc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,17 @@
291291
"description": {
292292
"key": "agentSandbox.enabledSetting",
293293
"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-
}
294+
},
295+
"enumDescriptions": [
296+
{
297+
"key": "agentSandbox.enabledSetting.offDescription",
298+
"value": "Disable sandboxing for agent mode tools."
299+
},
300+
{
301+
"key": "agentSandbox.enabledSetting.onDescription",
302+
"value": "Enable sandboxing for agent mode tools."
303+
}
304+
]
295305
},
296306
"type": "string",
297307
"default": "off",

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,17 @@ export const terminalChatAgentToolsConfiguration: IStringDictionary<IConfigurati
546546
description: {
547547
key: 'agentSandbox.enabledSetting',
548548
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-
}
549+
},
550+
enumDescriptions: [
551+
{
552+
key: 'agentSandbox.enabledSetting.offDescription',
553+
value: localize('agentSandbox.enabledSetting.offDescription', 'Disable sandboxing for agent mode tools.'),
554+
},
555+
{
556+
key: 'agentSandbox.enabledSetting.onDescription',
557+
value: localize('agentSandbox.enabledSetting.onDescription', 'Enable sandboxing for agent mode tools.'),
558+
},
559+
]
550560
}
551561
}
552562
},

0 commit comments

Comments
 (0)