mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-21 02:24:09 -07:00
enable cli_help agent by default (#16100)
This commit is contained in:
committed by
GitHub
parent
51d3f44d51
commit
1aa35c8796
@@ -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();
|
||||
|
||||
@@ -941,6 +941,7 @@ describe('Server Config (config.ts)', () => {
|
||||
const params: ConfigParameters = {
|
||||
...baseParams,
|
||||
codebaseInvestigatorSettings: { enabled: false },
|
||||
cliHelpAgentSettings: { enabled: false },
|
||||
};
|
||||
const config = new Config(params);
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user