mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-29 14:34:55 -07:00
feat(plan): conditionally add enter/exit plan mode tools based on current mode (#24378)
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
StandardFileSystemService,
|
||||
ToolRegistry,
|
||||
COMMON_IGNORE_PATTERNS,
|
||||
ApprovalMode,
|
||||
} from '@google/gemini-cli-core';
|
||||
import * as os from 'node:os';
|
||||
import type { UseHistoryManagerReturn } from './useHistoryManager.js';
|
||||
@@ -136,6 +137,7 @@ describe('handleAtCommand with Agents', () => {
|
||||
getMessageBus: () => mockMessageBus,
|
||||
interactive: true,
|
||||
getAgentRegistry: () => mockAgentRegistry,
|
||||
getApprovalMode: () => ApprovalMode.DEFAULT,
|
||||
} as unknown as Config;
|
||||
|
||||
const registry = new ToolRegistry(mockConfig, mockMessageBus);
|
||||
|
||||
Reference in New Issue
Block a user