Skip to content

Commit 6a8c325

Browse files
authored
Merge pull request microsoft#257089 from microsoft/tyriar/machine
Make terminal auto approve machine scope
2 parents cebcc6f + 3cdb459 commit 6a8c325

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/vs/workbench/contrib/chat/browser/chat.contribution.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ configurationRegistry.registerConfiguration({
223223
description: nls.localize('chat.tools.autoApprove.description', "Controls whether tool use should be automatically approved. Allow all tools to run automatically without user confirmation, overriding any tool-specific settings such as terminal auto-approval. Use with caution: carefully review selected tools and be extra wary of possible sources of prompt injection!"),
224224
markdownDescription: nls.localize('chat.tools.autoApprove.markdownDescription', "Controls whether tool use should be automatically approved.\n\nAllows _all_ tools to run automatically without user confirmation, overriding any tool-specific settings such as terminal auto-approval.\n\nUse with caution: carefully review selected tools and be extra wary of possible sources of prompt injection!"),
225225
type: 'boolean',
226+
scope: ConfigurationScope.MACHINE,
226227
tags: ['experimental'],
227228
policy: {
228229
name: 'ChatToolsAutoApprove',

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import type { IStringDictionary } from '../../../../../base/common/collections.js';
77
import type { IJSONSchema } from '../../../../../base/common/jsonSchema.js';
88
import { localize } from '../../../../../nls.js';
9-
import type { IConfigurationPropertySchema } from '../../../../../platform/configuration/common/configurationRegistry.js';
9+
import { ConfigurationScope, type IConfigurationPropertySchema } from '../../../../../platform/configuration/common/configurationRegistry.js';
1010

1111
export const enum TerminalChatAgentToolsSettingId {
1212
AutoApprove = 'chat.agent.terminal.autoApprove',
@@ -51,6 +51,7 @@ export const terminalChatAgentToolsConfiguration: IStringDictionary<IConfigurati
5151
].join('\n')
5252
].join('\n\n'),
5353
type: 'object',
54+
scope: ConfigurationScope.MACHINE,
5455
additionalProperties: {
5556
anyOf: [
5657
autoApproveBoolean,

0 commit comments

Comments
 (0)