From 99a6dc026708d91bb628873a769c615640a2c0ea Mon Sep 17 00:00:00 2001 From: Billy Biggs Date: Sat, 21 Jun 2025 12:15:43 -0700 Subject: Update memory and context summary UI for multiple context filenames (#1282) --- packages/cli/src/ui/hooks/slashCommandProcessor.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts') 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( ( -- cgit v1.2.3