enable cli_help agent by default (#16100)

This commit is contained in:
Tommaso Sciortino
2026-01-07 15:43:12 -08:00
committed by GitHub
parent 51d3f44d51
commit 1aa35c8796
7 changed files with 12 additions and 10 deletions

View File

@@ -111,4 +111,5 @@ they appear in the UI.
| ----------------------------------- | ------------------------------------------------------- | ------------------------------------------------------------ | ------- |
| Enable Codebase Investigator | `experimental.codebaseInvestigatorSettings.enabled` | Enable the Codebase Investigator agent. | `true` |
| Codebase Investigator Max Num Turns | `experimental.codebaseInvestigatorSettings.maxNumTurns` | Maximum number of turns for the Codebase Investigator agent. | `10` |
| Enable CLI Help Agent | `experimental.cliHelpAgentSettings.enabled` | Enable the CLI Help Agent. | `true` |
| Agent Skills | `experimental.skills` | Enable Agent Skills (experimental). | `false` |

View File

@@ -853,7 +853,7 @@ their corresponding top-level category object in your `settings.json` file.
- **`experimental.cliHelpAgentSettings.enabled`** (boolean):
- **Description:** Enable the CLI Help Agent.
- **Default:** `false`
- **Default:** `true`
- **Requires restart:** Yes
#### `skills`

View File

@@ -1467,7 +1467,7 @@ const SETTINGS_SCHEMA = {
label: 'Enable CLI Help Agent',
category: 'Experimental',
requiresRestart: true,
default: false,
default: true,
description: 'Enable the CLI Help Agent.',
showInDialog: true,
},

View File

@@ -209,6 +209,7 @@ describe('AgentRegistry', () => {
const disabledConfig = makeFakeConfig({
enableAgents: false,
codebaseInvestigatorSettings: { enabled: false },
cliHelpAgentSettings: { enabled: false },
});
const disabledRegistry = new TestableAgentRegistry(disabledConfig);
@@ -220,10 +221,8 @@ describe('AgentRegistry', () => {
).not.toHaveBeenCalled();
});
it('should register CLI help agent if enabled', async () => {
const config = makeFakeConfig({
cliHelpAgentSettings: { enabled: true },
});
it('should register CLI help agent by default', async () => {
const config = makeFakeConfig();
const registry = new TestableAgentRegistry(config);
await registry.initialize();

View File

@@ -941,6 +941,7 @@ describe('Server Config (config.ts)', () => {
const params: ConfigParameters = {
...baseParams,
codebaseInvestigatorSettings: { enabled: false },
cliHelpAgentSettings: { enabled: false },
};
const config = new Config(params);

View File

@@ -622,7 +622,7 @@ export class Config {
model: params.codebaseInvestigatorSettings?.model,
};
this.cliHelpAgentSettings = {
enabled: params.cliHelpAgentSettings?.enabled ?? false,
enabled: params.cliHelpAgentSettings?.enabled ?? true,
};
this.continueOnFailedApiCall = params.continueOnFailedApiCall ?? true;
this.enableShellOutputEfficiency =
@@ -1754,7 +1754,8 @@ export class Config {
// Register DelegateToAgentTool if agents are enabled
if (
this.isAgentsEnabled() ||
this.getCodebaseInvestigatorSettings().enabled
this.getCodebaseInvestigatorSettings().enabled ||
this.getCliHelpAgentSettings().enabled
) {
// Check if the delegate tool itself is allowed (if allowedTools is set)
const allowedTools = this.getAllowedTools();

View File

@@ -1435,8 +1435,8 @@
"enabled": {
"title": "Enable CLI Help Agent",
"description": "Enable the CLI Help Agent.",
"markdownDescription": "Enable the CLI Help Agent.\n\n- Category: `Experimental`\n- Requires restart: `yes`\n- Default: `false`",
"default": false,
"markdownDescription": "Enable the CLI Help Agent.\n\n- Category: `Experimental`\n- Requires restart: `yes`\n- Default: `true`",
"default": true,
"type": "boolean"
}
},