mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-17 01:21:10 -07:00
feat: move shell efficiency guidelines to tool description (#18614)
This commit is contained in:
@@ -130,6 +130,7 @@ describe('ShellTool', () => {
|
||||
getGeminiClient: vi.fn().mockReturnValue({}),
|
||||
getShellToolInactivityTimeout: vi.fn().mockReturnValue(1000),
|
||||
getEnableInteractiveShell: vi.fn().mockReturnValue(false),
|
||||
getEnableShellOutputEfficiency: vi.fn().mockReturnValue(true),
|
||||
sanitizationConfig: {},
|
||||
} as unknown as Config;
|
||||
|
||||
@@ -633,6 +634,15 @@ describe('ShellTool', () => {
|
||||
const shellTool = new ShellTool(mockConfig, createMockMessageBus());
|
||||
expect(shellTool.description).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it('should not include efficiency guidelines when disabled', () => {
|
||||
mockPlatform.mockReturnValue('linux');
|
||||
vi.mocked(mockConfig.getEnableShellOutputEfficiency).mockReturnValue(
|
||||
false,
|
||||
);
|
||||
const shellTool = new ShellTool(mockConfig, createMockMessageBus());
|
||||
expect(shellTool.description).not.toContain('Efficiency Guidelines:');
|
||||
});
|
||||
});
|
||||
|
||||
describe('llmContent output format', () => {
|
||||
|
||||
Reference in New Issue
Block a user