diff options
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/slashCommandProcessor.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts index 679c294c..66dfe213 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -32,6 +32,7 @@ import { createShowMemoryAction } from './useShowMemoryCommand.js'; import { GIT_COMMIT_INFO } from '../../generated/git-commit.js'; import { formatDuration, formatMemoryUsage } from '../utils/formatters.js'; import { getCliVersion } from '../../utils/version.js'; +import { LoadedSettings } from '../../config/settings.js'; export interface SlashCommandActionReturn { shouldScheduleTool?: boolean; @@ -60,6 +61,7 @@ export interface SlashCommand { */ export const useSlashCommandProcessor = ( config: Config | null, + settings: LoadedSettings, history: HistoryItem[], addItem: UseHistoryManagerReturn['addItem'], clearItems: UseHistoryManagerReturn['clearItems'], @@ -135,9 +137,9 @@ export const useSlashCommandProcessor = ( ); const showMemoryAction = useCallback(async () => { - const actionFn = createShowMemoryAction(config, addMessage); + const actionFn = createShowMemoryAction(config, settings, addMessage); await actionFn(); - }, [config, addMessage]); + }, [config, settings, addMessage]); const addMemoryAction = useCallback( ( |
