chore(config): disable agents by default (#23546)

This commit is contained in:
Abhi
2026-03-23 15:24:16 -04:00
committed by GitHub
parent ac95282758
commit b2d6dc4e32
8 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -1535,7 +1535,7 @@ their corresponding top-level category object in your `settings.json` file.
- **`experimental.enableAgents`** (boolean): - **`experimental.enableAgents`** (boolean):
- **Description:** Enable local and remote subagents. - **Description:** Enable local and remote subagents.
- **Default:** `true` - **Default:** `false`
- **Requires restart:** Yes - **Requires restart:** Yes
- **`experimental.worktrees`** (boolean): - **`experimental.worktrees`** (boolean):
+6
View File
@@ -63,6 +63,9 @@ describe.skipIf(!chromeAvailable)('browser-policy', () => {
rig.setup('browser-policy-skip-confirmation', { rig.setup('browser-policy-skip-confirmation', {
fakeResponsesPath: join(__dirname, 'browser-policy.responses'), fakeResponsesPath: join(__dirname, 'browser-policy.responses'),
settings: { settings: {
experimental: {
enableAgents: true,
},
agents: { agents: {
overrides: { overrides: {
browser_agent: { browser_agent: {
@@ -180,6 +183,9 @@ priority = 200
rig.setup('browser-session-warning', { rig.setup('browser-session-warning', {
fakeResponsesPath: join(__dirname, 'browser-agent.cleanup.responses'), fakeResponsesPath: join(__dirname, 'browser-agent.cleanup.responses'),
settings: { settings: {
experimental: {
enableAgents: true,
},
general: { general: {
enableAutoUpdateNotification: false, enableAutoUpdateNotification: false,
}, },
@@ -341,11 +341,11 @@ describe('loadConfig', () => {
); );
}); });
it('should default enableAgents to true when not provided', async () => { it('should default enableAgents to false when not provided', async () => {
await loadConfig(mockSettings, mockExtensionLoader, taskId); await loadConfig(mockSettings, mockExtensionLoader, taskId);
expect(Config).toHaveBeenCalledWith( expect(Config).toHaveBeenCalledWith(
expect.objectContaining({ expect.objectContaining({
enableAgents: true, enableAgents: false,
}), }),
); );
}); });
+1 -1
View File
@@ -127,7 +127,7 @@ export async function loadConfig(
interactive: !isHeadlessMode(), interactive: !isHeadlessMode(),
enableInteractiveShell: !isHeadlessMode(), enableInteractiveShell: !isHeadlessMode(),
ptyInfo: 'auto', ptyInfo: 'auto',
enableAgents: settings.experimental?.enableAgents ?? true, enableAgents: settings.experimental?.enableAgents ?? false,
}; };
const fileService = new FileDiscoveryService(workspaceDir, { const fileService = new FileDiscoveryService(workspaceDir, {
@@ -400,7 +400,7 @@ describe('SettingsSchema', () => {
expect(setting).toBeDefined(); expect(setting).toBeDefined();
expect(setting.type).toBe('boolean'); expect(setting.type).toBe('boolean');
expect(setting.category).toBe('Experimental'); expect(setting.category).toBe('Experimental');
expect(setting.default).toBe(true); expect(setting.default).toBe(false);
expect(setting.requiresRestart).toBe(true); expect(setting.requiresRestart).toBe(true);
expect(setting.showInDialog).toBe(false); expect(setting.showInDialog).toBe(false);
expect(setting.description).toBe('Enable local and remote subagents.'); expect(setting.description).toBe('Enable local and remote subagents.');
+1 -1
View File
@@ -1922,7 +1922,7 @@ const SETTINGS_SCHEMA = {
label: 'Enable Agents', label: 'Enable Agents',
category: 'Experimental', category: 'Experimental',
requiresRestart: true, requiresRestart: true,
default: true, default: false,
description: 'Enable local and remote subagents.', description: 'Enable local and remote subagents.',
showInDialog: false, showInDialog: false,
}, },
+1 -1
View File
@@ -1001,7 +1001,7 @@ export class Config implements McpContext, AgentLoopContext {
this.model = params.model; this.model = params.model;
this.disableLoopDetection = params.disableLoopDetection ?? false; this.disableLoopDetection = params.disableLoopDetection ?? false;
this._activeModel = params.model; this._activeModel = params.model;
this.enableAgents = params.enableAgents ?? true; this.enableAgents = params.enableAgents ?? false;
this.agents = params.agents ?? {}; this.agents = params.agents ?? {};
this.disableLLMCorrection = params.disableLLMCorrection ?? true; this.disableLLMCorrection = params.disableLLMCorrection ?? true;
this.planEnabled = params.plan ?? true; this.planEnabled = params.plan ?? true;
+2 -2
View File
@@ -2673,8 +2673,8 @@
"enableAgents": { "enableAgents": {
"title": "Enable Agents", "title": "Enable Agents",
"description": "Enable local and remote subagents.", "description": "Enable local and remote subagents.",
"markdownDescription": "Enable local and remote subagents.\n\n- Category: `Experimental`\n- Requires restart: `yes`\n- Default: `true`", "markdownDescription": "Enable local and remote subagents.\n\n- Category: `Experimental`\n- Requires restart: `yes`\n- Default: `false`",
"default": true, "default": false,
"type": "boolean" "type": "boolean"
}, },
"worktrees": { "worktrees": {