feat(agent): add allowed domain restrictions for browser agent (#21775)

This commit is contained in:
cynthialong0-0
2026-03-13 12:41:40 -07:00
committed by GitHub
parent dd8d4c98b3
commit bfbd3c40a7
8 changed files with 283 additions and 3 deletions
+13
View File
@@ -1117,6 +1117,19 @@ const SETTINGS_SCHEMA = {
description: 'Model override for the visual agent.',
showInDialog: false,
},
allowedDomains: {
type: 'array',
label: 'Allowed Domains',
category: 'Advanced',
requiresRestart: true,
default: ['github.com', '*.google.com', 'localhost'] as string[],
description: oneLine`
A list of allowed domains for the browser agent
(e.g., ["github.com", "*.google.com"]).
`,
showInDialog: false,
items: { type: 'string' },
},
disableUserInput: {
type: 'boolean',
label: 'Disable User Input',